diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index ef69d7f..ae706dc 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -2,6 +2,7 @@ set -g prefix C-b +bind C-b send-prefix # Toggle local tmux mappings to allow control remote tmux @@ -83,7 +84,8 @@ setw -g mode-keys vi bind v copy-mode bind p paste-buffer -bind -T copy-mode-vi v send-keys -X begin-selection +## Toggle selection +bind -T copy-mode-vi v if -F '#{selection_active}' 'send-keys -X clear-selection' 'send-keys -X begin-selection' bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind -T copy-mode-vi C-v send-keys -X rectangle-toggle