How to discover and search tmux key bindings?
Every key binding, with a note, from Ctrl-A ? or from the shell with list-keys; list-commands gives the syntax and flags of every command.
A terminal multiplexer: sessions that survive a disconnect, windows, and split panes.
10 articles tagged with "Tmux"
Every key binding, with a note, from Ctrl-A ? or from the shell with list-keys; list-commands gives the syntax and flags of every command.
Open the command prompt with Ctrl-A : and type any tmux command without the leading tmux word: the interactive twin of the CLI, on the server you are attached to.
source-file re-reads ~/.tmux.conf into the running server, so a changed setting takes effect without killing tmux. Bind it to a key to reload after every edit.
tmux ships five preset layouts. Cycle them with Ctrl-A Space, or name one to select-layout, tiled included for an even grid in one step.
swap-pane exchanges two panes without touching the layout: the cells stay put, the panes trade places. Use Ctrl-A { or Ctrl-A } for the neighbours.
join-pane and move-window accept a source in another session of the same server, and the process running in the pane is re-parented, not restarted. A server started in a throwaway session lands in your main workspace without going down.
Relative targets like down-of name a pane by its position, no index lookup. join-pane -h -s picks the pane below the active one and re-attaches it to the right: a stacked pair becomes side by side in one command.
join-pane detaches a pane from wherever it lives and re-attaches it as a split in the current window, processes included. break-pane does the exact opposite: it sends a pane off to its own window.
Mark a pane with Ctrl-A m and the {marked} target resolves to it from any window or session, so a swap or a join needs no index juggling.
tmux window targets accept special tokens for the first, last, previously active, next and previous windows, with one-character aliases. They keep scripts independent of actual index numbers.