tmux: Better clipboard on mouse drag
This commit is contained in:
@@ -2,6 +2,12 @@ set -g default-terminal "tmux-256color"
|
||||
set -g mouse on
|
||||
set -g mode-keys vi
|
||||
|
||||
# Better clipboard on mousedrag (https://unix.stackexchange.com/a/349020)
|
||||
# Disable xterm escape sequences for setting clipboard
|
||||
set -s set-clipboard off
|
||||
# Copy selection into primary selection (without aborting)
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip -se p"
|
||||
|
||||
# https://github.com/neovim/neovim/wiki/FAQ#cursor-shape-doesnt-change-in-tmux
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user