Add cancel to leave copy mode after making a copy

This commit is contained in:
David Thurstenson 2017-05-24 08:25:42 -05:00
parent 9b8adea3df
commit 696756bb8d
1 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ set -sg escape-time 0
bind-key -T copy-mode-vi Home send -X start-of-line
bind-key -T copy-mode-vi End send -X end-of-line
# Sync copy mode and PRIMARY selection
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "xsel -i -p -b"
bind-key -T copy-mode-vi Enter send -X copy-pipe "xsel -i -p -b"
bind-key -T copy-mode-vi y send -X copy-pipe "xsel -i -p -b"
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xsel -i -p -b"
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "xsel -i -p -b"
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "xsel -i -p -b"