summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorxs <xs@xs.local>2026-11-09 19:15:38 +0800
committerxs <xs@xs.local>2026-11-09 19:15:38 +0800
commit20e382dec315fb23bb3dda787247312fc355df9a (patch)
tree73efb407322ce7e96af36cba62e22714c61b4626 /core
parentc647d422cd001c7845bcec05c06fdbd54b3efec4 (diff)
tmux: prefix S + digit swaps panes via display-panes, drop prefix P (use prefix q + digit), display-panes-time 3000
Diffstat (limited to 'core')
-rw-r--r--core/tmux.conf7
1 files changed, 4 insertions, 3 deletions
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
16set -g pane-border-status top 16set -g pane-border-status top
17set -g pane-border-format "#P" 17set -g pane-border-format "#P"
18 18
19# Explicitly swap current pane with a pane index you type in 19# Swap current pane with pane N: prefix S then N (same number overlay as prefix q)
20bind-key S command-prompt -p "swap with pane #:" "swap-pane -d -t '%%'" 20bind-key S display-panes { swap-pane -d -t '%%' }
21bind-key P command-prompt -p "go to pane #:" "select-pane -t '%%'"
22# Manual: :swap-pane -s <src> -t <dst> 21# Manual: :swap-pane -s <src> -t <dst>
22# Go to pane N: prefix q then N (numbers stay up 3 s; pressing the digit ends it early)
23set -g display-panes-time 3000
23 24
24# Vim-style pane resizing (prefix + H/J/K/L), magnitude 1 25# Vim-style pane resizing (prefix + H/J/K/L), magnitude 1
25bind -r H resize-pane -L 1 26bind -r H resize-pane -L 1