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"