tmux: Cancel copy-mode with insert-mode bindings

This commit is contained in:
2023-05-22 14:47:13 +02:00
parent 0bb92e80c8
commit 33be2cf3be

View File

@@ -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