From 3b06ce752d3e27a5c9bf069c795ef9f9d34d6a09 Mon Sep 17 00:00:00 2001 From: Mortdecai Date: Fri, 24 Apr 2026 19:50:24 -0400 Subject: [PATCH] fix: keep tmux selection alive after mouse-drag in copy mode Change MouseDragEnd1Pane from copy-selection-and-cancel to copy-selection so a drag-select copies but stays in copy mode, letting you re-select without re-entering copy mode each time. Press 'q' to exit when done. --- config/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/tmux.conf b/config/tmux.conf index 8df0cd3..0682c5f 100644 --- a/config/tmux.conf +++ b/config/tmux.conf @@ -110,7 +110,7 @@ set -g history-limit 200000 setw -g mode-keys vi bind -T copy-mode-vi v send -X begin-selection bind -T copy-mode-vi y send -X copy-selection-and-cancel -bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel +bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection # --- Capture & logging --- bind S run-shell 'tmux capture-pane -pS - > ~/logs/capture-#S-#I-#P-$(date +%%s).txt && tmux display "Pane captured to ~/logs/"'