feat(tmux): move panes between windows — J/L join marked pane, S swap, ( ) repeatable swap-pane up/down; CHANGELOG Unreleased

This commit is contained in:
bchanot committed 2026-10-09 09:26:39 +02:00
1 parent ad8b9e55a8
commit 059a770139
2 files changed
+16

No files matched your search

+12
View File
@@ -187,6 +187,18 @@ bind-key l "split-window -h -c '#{pane_current_path}'"
bind-key i "split-window -h -c '#{pane_current_path}'" # i: side by side (vertical bar)
bind-key - "split-window -v -c '#{pane_current_path}'" # -: stacked (horizontal bar)
# Move panes between windows and around. Source = the marked pane (prefix m,
# toggles) when one is set, else the current pane. Prefix ! (stock break-pane)
# does the reverse: current pane out to a new window.
bind-key J join-pane -v # marked pane joins this window, below (mirrors j)
bind-key L join-pane -h # marked pane joins this window, beside (mirrors l)
bind-key S swap-pane # swap marked pane with the current one
# Stock { } (swap-pane -U/-D) sit behind alt+( alt+) on a Mac AZERTY keyboard.
# ( ) are unshifted there, and repeatable; they replace switch-client -p/-n,
# which prefix s (choose-tree) still covers.
bind-key -r ( swap-pane -U # move pane up / left (previous slot)
bind-key -r ) swap-pane -D # move pane down / right (next slot)
bind q kill-window # Kill window
bind Q kill-session # Kill the session (not server)
bind C-c neww \; set status on # enable status bar