Mercurial > dotfiles
diff dot_tmux.conf @ 770:9f4e4087e2e7
fix: paste current selection on middlemouse
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 22 Mar 2023 11:04:41 +0000 |
parents | eeaf0d561877 |
children | 0c2dcf35d759 |
line wrap: on
line diff
--- a/dot_tmux.conf Wed Mar 22 10:26:32 2023 +0000 +++ b/dot_tmux.conf Wed Mar 22 11:04:41 2023 +0000 @@ -55,7 +55,8 @@ bind-key -T copy-mode-vi 'r' send -X rectangle-toggle unbind-key -T copy-mode-vi MouseDragEnd1Pane unbind -T copy-mode-vi MouseDragEnd1Pane -# unbind -t vi-copy MouseDragEnd1Pane +# Copy and Paste selection on middle mouse +bind-key -T copy-mode-vi MouseDown2Pane send-keys -X copy-pipe-and-cancel "tmux paste-buffer" # Smart pane switching with awareness of Vim splits. # See: https://github.com/christoomey/vim-tmux-navigator