Skip to content

tmux shortcuts

Aliases mux / mux1 open (or re-attach to) the first and second sessions.

Custom bindings

Generated from terminal/dot-tmux.conf by tools/gen-docs.py — run just docs-update to refresh.

The prefix is C-a (Ctrl+a).

After the prefix

Press the prefix first, then the key.

KeyDescriptionCommand
C-aJump to the last active windowlast-window
EscapeEnter copy modecopy-mode
pPaste bufferpaste-buffer
rReload ~/.tmux.confsource-file ${HOME}/.tmux.conf \; display-message "source-file reloaded"
C-lSend a literal Ctrl+L (clear screen) to the panesend-keys 'C-l'
=Split pane horizontally (keeps current path)split-window -h -c "#{pane_current_path}"
-Split pane vertically (keeps current path)split-window -v -c "#{pane_current_path}"
MMouse mode ONset -g mouse on \; display 'Mouse: ON'
mMouse mode OFFset -g mouse off \; display 'Mouse: OFF'
uCapture pane and pick a URL to open (urlview popup window)capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview"…
C-tPopup terminal in the current pane’s pathdisplay-popup -E -h 70% -w 70% -d "#{pane_current_path}"

No prefix (root table)

Active anywhere, no prefix needed.

KeyDescriptionCommand
F12Toggle OFF mode for nested/remote tmux — all keys (incl. the prefix) pass through to the pane; status bar turns redset prefix None \; set key-table off \; set status-style "fg=colour245,…
C-tUnified file finder — passed through in fish/editors, else a popup that injects paths into the pane’s TUI (pick-files)if-shell "case '#{pane_current_command}' in fish|nvim|vim|hx) exit 0 ;;…

Copy mode (vi keys)

Active while in copy mode.

KeyDescriptionCommand
vBegin selection (vi-style)send-keys -X begin-selection
C-vToggle rectangle (block) selectionsend-keys -X rectangle-toggle
yCopy selection and leave copy modesend-keys -X copy-selection-and-cancel

OFF mode

Active only while OFF mode is toggled on.

KeyDescriptionCommand
F12Leave OFF mode (restore the local prefix)set -u prefix \; set -u key-table \; set -u status-style \; set -u wind…

tmux defaults worth remembering

Key (after prefix)Action
cNew tab (window)
1 2 3…9Change to tab #1 to #9
!Promote pane to tab
,Rename tab
wList windows
fFind window
&Kill window
.Move window (prompt #)
:movew + EnterMove window (unused #)
$Rename session

Plugin bindings (TPM)

Plugin keymaps are defined by the plugins themselves, not in tmux.conf, so these tables are maintained by hand. The plugin list lives in the @tpm_plugins block of tmux.conf. Manage plugins with Prefix + I (install) and Prefix + U (update all).

copycat

Key (after prefix)Action
/regex search + copy mode
njump to the next match in copy mode
Njump to the previous match
ycopy entire line
Entercopy highlighted match

yank

  • y — copy selection to the system clipboard

Tip with mouse support: press y before releasing the mouse.

extrakto (fuzzy search)

Key (after prefix)Action
Tabfuzzy search + fzf mode
Entercopy selection inside fzf mode

Requires fzf (paru -S fzf).

resurrect + continuum

Key (after prefix)Action
Ctrl+ssave all tabs
Ctrl+rrestore all tabs

Continuum is configured with @continuum-restore on, so sessions also restore automatically when the tmux server starts.

pain-control (panes)

Splitting:

Key (after prefix)Action
|split current pane horizontally
-split current pane vertically

Navigation:

Key (after prefix)Action
h C-hselect pane on the left
j C-jselect pane below the current
k C-kselect pane above the current
l C-lselect pane on the right

Resizing:

Key (after prefix)Action
Hresize left
Jresize down
Kresize up
Lresize right

Swapping windows:

Key (after prefix)Action
<move one position to the left
>move one position to the right

sessionist (sessions)

Key (after prefix)Action
gprompt for session name and switch to it
Cprompt for creating a new session by name
Xkill current session without detaching tmux
Sswitch to the last session
@promote current pane into a new session

sessionx (session picker)

Key (after prefix)Action
oopen the sessionx picker (zoxide mode, ~/Projects)

open

Key (in copy mode)Action
oopen a highlighted selection with the system default program
Ctrl+oopen a highlighted selection with $EDITOR
Sweb-search the selection (DuckDuckGo)

thumbs

Hint-based copy: trigger with Prefix + Space, then press the hint key to copy that text (configured to use wl-copy via OSC52).

logging

Key (after prefix)Action
Pstart/stop logging
Alt+plog current screen
Alt+Psave complete history

fzf

Prefix + F opens the tmux-fzf menu (sessions, windows, panes, commands).