Has anyone managed to bind mouse buttons to custom functions in tmux?
According to the manual this should work:
bind-key -n MouseDown2Pane paste-buffer
This should let me take text that was previously copied with a click-and-drag, and paste with just a right click. However the line above causes an error on startup:
.tmux.conf:39: unknown key: MouseDown2Pane
This with tmux 2.0.0 compiled from source on an OpenSuse 12 machine, accessed from Windows over kitty.
I know there are other ways to copy and to paste; I am specifically trying be able to paste with a right mouse click only and no other keys or modifiers, with the tmux mouse mode enabled.