From 2e9c444e09028e6f857f3fb41b35fe1821c7b928 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 6 Mar 2026 15:40:56 +0300 Subject: [PATCH] fix tmux copy mapping --- home/user/.config/tmux/mappings.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index b0f460e..9495613 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -183,8 +183,10 @@ bind -n M-Tab swap-pane -t '{left-of}' setw -g mode-keys vi bind v copy-mode bind C-p choose-buffer -bind -T copy-mode-vi C-v send-keys -X rectangle-toggle - +bind -T copy-mode-vi C-v { + send-keys -X rectangle-toggle + if -F '#{selection_active}' '' 'send-keys -X begin-selection' +} bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "copy"