Difference between revisions of "Tmux notes"
Jump to navigation
Jump to search
(→panes) |
|||
Line 42: | Line 42: | ||
'''C+b % vertical split''' | '''C+b % vertical split''' | ||
'''C+b " horizontal split''' | '''C+b " horizontal split''' | ||
− | '''C+b | + | '''C+b -> move pane right''' |
− | '''C+b | + | '''C+b <- move pane left''' |
− | '''C+b | + | '''C+b "arrow up" move pane up''' |
− | '''C+b | + | '''C+b "arrow down" move pane down''' |
C+b O goto next pane | C+b O goto next pane | ||
C+b ; goto last active pane | C+b ; goto last active pane | ||
Line 51: | Line 51: | ||
C+b { move pane left | C+b { move pane left | ||
'''C+b ! convert pane into window''' | '''C+b ! convert pane into window''' | ||
− | '''C+b X kill pane''' | + | '''C+b X kill pane''' |
+ | |||
+ | [[Category:ReferenceCards]] | ||
=copy mode (vi)= | =copy mode (vi)= |
Latest revision as of 10:27, 2 February 2021
Contents
1 links
- https://www.google.com/search?q=tmux+cheat+sheet+pdf&tbm=isch
- https://leanpub.com/the-tao-of-tmux/read
2 general
C => CTRL
2.1 commands
are dealing with sessions
2.2 session
think of it as a browser instance
2.3 window
think of it as a browser tab
2.4 pane
think of it as a pane in a tiled window
3 commands
tmux new -s name start new session tmux ls list sessions tmux kill-ses -t name kill session tmux a -t name attach a session (resume)
4 sessions
C+b $ rename session C+b d detach session C+b ) next session C+b ( previous session
5 windows
C+b c create new window C+b n move to next window C+b p move to previous window C+b l move to last used window C+b [0-9] select window by number C+b ' select window by name C+b . change window number C+b , rename windows C+b F search windows C+b & kill windows
6 panes
# think as panes of a real window C+b % vertical split C+b " horizontal split C+b -> move pane right C+b <- move pane left C+b "arrow up" move pane up C+b "arrow down" move pane down C+b O goto next pane C+b ; goto last active pane C+b } move pane right C+b { move pane left C+b ! convert pane into window C+b X kill pane
7 copy mode (vi)
C+b [ enter copy mode C+b ] paste from buffer space start selection enter copy selection esc clear selection g go to top G go to bottom h move cursor left j move cursor down k move cursor up l move cursor right / search # list paste buffers q quit