Emacs, scripting and anything text oriented.

tmux Shift + Mouse

Kaushal Modi

Using mouse to copy/paste in tmux panes.

I had been missing the “select and middle-click” method for copying and pasting stuff in tmux panes.

Thanks to this post, I learned that I can use the Shift key and bypass tmux’s own copy and paste method.

Key/Mouse BindingAction
Shift + Mouse left button double-clickCopies the double-clicked word
Shift + Select using mouseCopies the selection
Shift + Mouse middle button clickPastes the copied text using above method in the tmux pane

Versions used: tcsh 6.17.00 , tmux 2.6+ , xterm X.Org 6.8.99.903(327)