Files
alfred-tmux-cheat-sheet/data/tmux_commands.tsv
Felix Förtsch c21f272491
Some checks failed
Build Workflow / build (push) Failing after 6s
initial commit: tmux cheat sheet alfred workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 14:25:57 +01:00

9.2 KiB

1attach-sessionAttach to a session by nametmux a -t mysession
2attach-sessionAttach to last sessiontmux attach
3copy-modeEnter copy modetmux copy-mode
4detach-clientDetach from current sessiontmux detach
5key-,Rename the current window.{prefix} ,
6key-:Enter the tmux command prompt.{prefix} :
7key-?List all key bindings.{prefix} ?
8key-[Enter copy mode to copy text or view the history.{prefix} [
9key-]Paste the most recently copied buffer of text.{prefix} ]
10key-%Split the current pane into two, left and right.{prefix} %
11key-$Rename the current session.{prefix} $
12key-0-to-9Select windows 0 to 9.{prefix} 0 to 9
13key-cCreate a new window.{prefix} c
14key-dDetach the current client.{prefix} d
15key-nChange to the next window.{prefix} n
16key-oSelect the next pane in the current window.{prefix} o
17key-pChange to the previous window.{prefix} p
18key-wChoose the current window interactively.{prefix} w
19key-xKill the current pane.{prefix} x
20key-zToggle zoom state of the current pane.{prefix} z
21kill-paneKill current panetmux kill-pane
22kill-serverKill tmux server and all sessionstmux kill-server
23kill-sessionKill a session by nametmux kill-session -t mysession
24kill-sessionKill all sessions but currenttmux kill-session -a
25kill-sessionKill all sessions except onetmux kill-session -a -t mysession
26kill-windowKill current windowtmux kill-window
27list-sessionsList all sessionstmux ls
28new-sessionStart a named sessiontmux new -s mysession
29new-sessionStart a new sessiontmux new
30new-sessionStart a session with a named windowtmux new -s mysession -n mywindow
31new-sessionStart or attach to existing sessiontmux new -A -s mysession
32new-windowCreate a named windowtmux new-window -n editor
33new-windowCreate a new windowtmux new-window
34rename-windowRename current windowtmux rename-window newname
35resize-paneResize pane downtmux resize-pane -D 5
36resize-paneResize pane lefttmux resize-pane -L 10
37resize-paneResize pane righttmux resize-pane -R 10
38resize-paneResize pane uptmux resize-pane -U 5
39resize-paneZoom/unzoom panetmux resize-pane -Z
40select-paneSelect pane abovetmux select-pane -U
41select-paneSelect pane by numbertmux select-pane -t 1
42select-paneSelect pane to the lefttmux select-pane -L
43select-windowSelect window by numbertmux select-window -t :2
44set-optionEnable mouse modetmux set -g mouse on
45set-optionSet base index to 1tmux set -g base-index 1
46set-optionSet escape timetmux set -sg escape-time 0
47set-optionSet history limittmux set -g history-limit 10000
48set-optionSet vi mode keystmux set -g mode-keys vi
49source-fileReload tmux configtmux source-file ~/.tmux.conf
50split-windowSplit pane horizontally (top/bottom)tmux split-window -v
51split-windowSplit pane vertically (left/right)tmux split-window -h
52split-windowSplit pane with specific sizetmux split-window -h -l 30%
53bind-keyBind key to split verticaltmux bind | split-window -h
54break-paneMove pane to its own windowtmux break-pane
55choose-treeInteractive session choosertmux choose-tree -s
56choose-treeInteractive session/window choosertmux choose-tree
57command-promptOpen command prompttmux command-prompt
58has-sessionCheck if a session existstmux has-session -t mysession
59join-paneMove pane from another windowtmux join-pane -s :1
60key--Delete the most recently copied buffer of text.{prefix} -
61key-;Move to the previously active pane.{prefix} ;
62key-!Break the current pane out of the window.{prefix} !
63key-.Prompt for an index to move the current window.{prefix} .
64key-'Prompt for a window index to select.{prefix} '
65key-(Switch the attached client to the previous session.{prefix} (
66key-)Switch the attached client to the next session.{prefix} )
67key-{Swap the current pane with the previous pane.{prefix} {
68key-}Swap the current pane with the next pane.{prefix} }
69key-&Kill the current window.{prefix} &
70key-#List all paste buffers.{prefix} #
71key-=Choose which buffer to paste interactively from a list.{prefix} =
72key-C-bSend the prefix key (C-b) through to the application.{prefix} Ctrl+b
73key-DChoose a client to detach.{prefix} D
74key-fPrompt to search for text in open windows.{prefix} f
75key-lMove to the previously selected window.{prefix} l
76key-LSwitch the attached client back to the last session.{prefix} L
77key-Page-UpEnter copy mode and scroll one page up.{prefix} Page Up
78key-qBriefly display pane indexes.{prefix} q
79key-sSelect a new session for the attached client{prefix} s
80key-SpaceArrange the current window in the next preset layout.{prefix} Space
81last-paneToggle last active panetmux last-pane
82last-windowToggle last active windowtmux last-window
83list-keysList all key bindingstmux list-keys
84list-keysShow bindings for a keytmux list-keys -T prefix C-a
85list-windowsList windowstmux list-windows
86move-windowMove window between sessionstmux move-window -s foo:0 -t bar:9
87move-windowRenumber windows to remove gapstmux move-window -r
88next-windowGo to next windowtmux next-window
89previous-windowGo to previous windowtmux previous-window
90rename-sessionRename current sessiontmux rename-session newname
91set-window-optionEnable automatic renametmux setw -g automatic-rename on
92set-window-optionSet pane base indextmux setw -g pane-base-index 1
93show-optionsShow a specific optiontmux show-options -g status-style
94show-optionsShow all global optionstmux show-options -g
95swap-paneSwap two panestmux swap-pane -s 0 -t 1
96swap-windowMove current window lefttmux swap-window -t -1
97swap-windowSwap two windowstmux swap-window -s 2 -t 1
98switch-clientSwitch to another sessiontmux switch-client -t mysession
99unbind-keyRemove a key bindingtmux unbind-key r
100capture-paneCapture pane content to buffertmux capture-pane -pS -200
101choose-bufferChoose and paste a buffertmux choose-buffer
102clear-historyClear pane historytmux clear-history
103clock-modeShow clocktmux clock-mode
104confirm-beforeAsk before running commandtmux confirm-before kill-session
105customize-modeEnter customize modetmux customize-mode
106delete-bufferDelete a buffertmux delete-buffer -b 0
107display-panesShow pane numberstmux display-panes
108display-popupShow a popup windowtmux display-popup -w 80% -h 80%
109key-~Show previous messages from tmux, if any.{prefix} ~
110key-C-oRotate the panes in the current window forwards.{prefix} Ctrl+o
111key-C-zSuspend the tmux client.{prefix} Ctrl+z
112key-iDisplay some information about the current window.{prefix} i
113key-MClear the marked pane.{prefix} M
114key-mMark the current pane (see select-pane -m).{prefix} m
115key-M-1-to-M-7Arrange panes in one of the seven preset layouts: even-{prefix} Alt+1 to Alt+7
116key-M-nMove to the next window with a bell or activity marker.{prefix} Alt+n
117key-M-oRotate the panes in the current window backwards.{prefix} Alt+o
118key-M-pMove to the previous window with a bell or activity{prefix} Alt+p
119key-rForce redraw of the attached client.{prefix} r
120key-tShow the time.{prefix} t
121link-windowLink window from another sessiontmux link-window -s src:1 -t dst
122list-buffersList all paste bufferstmux list-buffers
123load-bufferLoad file into buffertmux load-buffer ~/file.txt
124lock-serverLock the servertmux lock-server
125move-paneMove pane to another windowtmux move-pane -t :2
126paste-bufferPaste buffertmux paste-buffer
127pipe-paneLog pane output to filetmux pipe-pane -o 'cat >> ~/tmux.log'
128refresh-clientRefresh client displaytmux refresh-client
129respawn-paneRestart a dead panetmux respawn-pane -k
130respawn-windowRestart a dead windowtmux respawn-window -k
131rotate-windowRotate panestmux rotate-window
132save-bufferSave buffer to filetmux save-buffer ~/tmux-buffer.txt
133select-layoutSet pane layouttmux select-layout even-horizontal
134select-layoutSet tiled layouttmux select-layout tiled
135set-environmentSet environment variabletmux set-environment -g EDITOR nvim
136show-bufferShow buffer contentstmux show-buffer
137show-environmentShow environment variablestmux show-environment -g
138show-hooksShow all hookstmux show-hooks -g
139unlink-windowUnlink a windowtmux unlink-window -t :1
140list-commandsList all tmux commandstmux list-commands
141show-messagesShow log messagestmux show-messages
142suspend-clientSuspend the clienttmux suspend-client
143wait-forWait for a signaltmux wait-for signal-name