changeset 770:9f4e4087e2e7

fix: paste current selection on middlemouse
author zegervdv <zegervdv@me.com>
date Wed, 22 Mar 2023 11:04:41 +0000
parents 0f6f809f1d39
children 653d00923944
files dot_tmux.conf
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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