From 20e382dec315fb23bb3dda787247312fc355df9a Mon Sep 17 00:00:00 2001 From: xs Date: Mon, 9 Nov 2026 19:15:38 +0800 Subject: tmux: prefix S + digit swaps panes via display-panes, drop prefix P (use prefix q + digit), display-panes-time 3000 --- core/tmux.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core/tmux.conf') diff --git a/core/tmux.conf b/core/tmux.conf index cc69bb5..0093aaa 100644 --- a/core/tmux.conf +++ b/core/tmux.conf @@ -16,10 +16,11 @@ set -g history-limit 10000 set -g pane-border-status top set -g pane-border-format "#P" -# Explicitly swap current pane with a pane index you type in -bind-key S command-prompt -p "swap with pane #:" "swap-pane -d -t '%%'" -bind-key P command-prompt -p "go to pane #:" "select-pane -t '%%'" +# Swap current pane with pane N: prefix S then N (same number overlay as prefix q) +bind-key S display-panes { swap-pane -d -t '%%' } # Manual: :swap-pane -s -t +# Go to pane N: prefix q then N (numbers stay up 3 s; pressing the digit ends it early) +set -g display-panes-time 3000 # Vim-style pane resizing (prefix + H/J/K/L), magnitude 1 bind -r H resize-pane -L 1 -- cgit