tmux: Cancel copy-mode with insert-mode bindings
This commit is contained in:
@@ -91,6 +91,12 @@ bind -T copy-mode-vi y send -X copy-pipe "xclip -selection clipboard"
|
||||
bind -T copy-mode-vi Escape \
|
||||
if -F "#{selection_present}" { send -X clear-selection } { send -X cancel }
|
||||
|
||||
# Use insert-mode-like bindings to cancel copy-mode
|
||||
bind -T copy-mode-vi A send -X cancel
|
||||
bind -T copy-mode-vi I send -X cancel
|
||||
bind -T copy-mode-vi a send -X cancel
|
||||
bind -T copy-mode-vi i send -X cancel
|
||||
|
||||
# Navigate panes with <prefix>-[hjkl]
|
||||
# NOTE: C-[hjkl] (w/o prefix) moves through vim splits and tmux panes
|
||||
# See vim-tmux-navigator
|
||||
|
||||
Reference in New Issue
Block a user