feat(tmux): map v to toggle selection in copy mode
This commit is contained in:
parent
89978d3476
commit
5d337d97e4
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
set -g prefix C-b
|
set -g prefix C-b
|
||||||
|
bind C-b send-prefix
|
||||||
|
|
||||||
|
|
||||||
# Toggle local tmux mappings to allow control remote tmux
|
# Toggle local tmux mappings to allow control remote tmux
|
||||||
@ -83,7 +84,8 @@ setw -g mode-keys vi
|
|||||||
bind v copy-mode
|
bind v copy-mode
|
||||||
bind p paste-buffer
|
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 y send-keys -X copy-selection-and-cancel
|
||||||
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user