From 913032b59dccd972dc08af8ff64e2bda4304aeae Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 20 Aug 2026 16:37:43 +0800 Subject: [PATCH] [debug] fix: tmux 3.6 selection (#48) * fix(tmux): tmux 3.6 selection Signed-off-by: Dict Xiong * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: Dict Xiong Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .tmux.conf2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.tmux.conf2 b/.tmux.conf2 index 346bb8e..e0f4c07 100644 --- a/.tmux.conf2 +++ b/.tmux.conf2 @@ -31,8 +31,9 @@ bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" bind m run 'old=$(tmux show -gv mouse); new="off"; if [ "$old" = "off" ]; then new="on"; fi; tmux set -g mouse $new && tmux display-message toggle\ mouse\ mode\ $new' ## prefix C-x: pane sync bind C-x set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}" -## prevent jumping to end after mouse selection -bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection -x +## tmux 3.6+: copy selection without jumping to the end +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection +bind -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection ## F12: passthru bind -T root F12 set prefix None \; set key-table off \; set status-bg red \; refresh-client -S bind -T off F12 set -u prefix \; set -u key-table \; set -u status-bg \; refresh-client -S