From 696756bb8d31eb33782fdb95a716e40fa35319d7 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 24 May 2017 08:25:42 -0500 Subject: [PATCH] Add cancel to leave copy mode after making a copy --- .tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 18263e0..5389111 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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"