Sample Header Ad - 728x90

How to use Ctrl+mouse click in tmux?

4 votes
2 answers
2018 views
Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt, Cmd) + middle click to paste the system's clipboard. This is what I have tried (failed) so far: bind -T root M+MouseDown2Pane run -b "pbpaste | tmux load-buffer -; tmux paste-buffer"
Asked by dragonxlwang (783 rep)
Nov 15, 2015, 07:46 PM
Last activity: Jun 3, 2025, 03:03 AM