Skip to content

Commit

Permalink
Do no cancel copy mode on MouseDown1Pane, just copy text and clear se…
Browse files Browse the repository at this point in the history
…lection
  • Loading branch information
samoshkin committed Nov 25, 2017
1 parent b453839 commit 21b4931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ bind-key -T copy-mode-vi A send-keys -X append-selection-and-cancel \;\
# Prefer iTerm style selection: select, then mouse click to copy to buffer
unbind -T copy-mode-vi MouseDragEnd1Pane
bind -T copy-mode-vi MouseDown1Pane select-pane \;\
send-keys -X copy-pipe-and-cancel "$yank"
send-keys -X copy-pipe "$yank" \;\
send-keys -X clear-selection

# iTerm2 works with clipboard out of the box, set-clipboard already set to "external"
# tmux show-options -g -s set-clipboard
Expand Down

0 comments on commit 21b4931

Please sign in to comment.