mirror of
https://github.com/samoshkin/tmux-config.git
synced 2026-01-03 16:28:01 +00:00
Do no cancel copy mode on MouseDown1Pane, just copy text and clear selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user