diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 7dbfff0..d8fa172 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -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'