4 ms·
Two things I've struggled to get working on my tmux is with mouse selection. While I use the keyboard way more, sometimes a mouse is easier. Anyway, when I sel
by bassdropvroom 6y ago
Two things I've struggled to get working on my tmux is with mouse selection. While I use the keyboard way more, sometimes a mouse is easier.
Anyway, when I select something with a mouse, it is not possible (or at least I've not found a solution) to let go of the MB1, and that automatically quits visual mode. And the other thing is when you scroll down to the bottom, it automatically quits visual mode.
- ianthehenry 6y agoYou can have your mouse copy and get you out of copy mode like this: # native mode, if your terminal supports it bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel # or if you're using X, and want it to work like any other program bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel 'xclip -i -selection primary' The scroll thing is a little hairier looking: bind -n WheelUpPane if -Ft= "#{mouse_any_flag}" { send -M } { if -Ft= "#{pane_in_mode}" { send -M } { copy-mode -t= } That's just the default binding for WheelUpPane, except using bare copy-mode instead of copy-mode -e (-e is auto-exit when you scroll to the bottom).