feat: tmux 可以点击选择 panel

Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
2026-04-07 11:27:18 +08:00
parent 368d39aab3
commit 2aa176dff5
4 changed files with 23 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
# 单击鼠标左键切换 pane 焦点,不触发 copy mode
bind-key -T root MouseDown1Pane select-pane -t = \; send-keys -M
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.config/tmux/plugins/tpm/tpm'