djsavvy
djsavvy

Reputation: 324

How can I enable mouse scrolling in tmux without also enabling mouse selection?

I currently use set-window-option -g mouse on, but this also enables selection inside tmux with my mouse. I'd like to disable this behavior but still keep scrollback working. Is this possible?

Upvotes: 0

Views: 818

Answers (1)

user11274868
user11274868

Reputation:

You can unbind the MouseDrag1Pane key in the root table to prevent tmux entering copy mode when you drag, for example:

unbind -n MouseDrag1Pane

Upvotes: 2

Related Questions