# HG changeset patch # User zegervdv # Date 1679483081 0 # Node ID 9f4e4087e2e7b37fd80b1b3e6dbce4b0dbb778d6 # Parent 0f6f809f1d39d94da861c625ac63963c3b35eb7c fix: paste current selection on middlemouse diff -r 0f6f809f1d39 -r 9f4e4087e2e7 dot_tmux.conf --- 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