tmux: Better clipboard on mouse drag

This commit is contained in:
2022-03-30 03:39:31 +02:00
parent b3ff4a2ad8
commit b16b230e99

View File

@@ -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'