How to bind to a mouse selection action?

10 views
Skip to first unread message

Kaushal Modi

unread,
Jul 28, 2020, 1:20:44 PM7/28/20
to tmux-users
Hello,

Is there a way to bind something to a mouse button release followed by a selection, instead of a mouse release happening due to a mere click.

E.g. I would like to ignore the left mouse release that happens when clicking on a pane. But I would like to bind something (like copy to both primary and clipboard) when releasing the left mouse button followed by a text selection.

Can we distinguish between those 2 when setting tmux binds?

Thanks.

--
Kaushal Modi

Nicholas Marriott

unread,
Jul 28, 2020, 2:33:51 PM7/28/20
to Kaushal Modi, tmux-users
You could maybe check the selection_present format (it might be called something else).

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAFyQvY29p3jxyEip3-Vt2KepcLDXYSonc%2B%2BDZ69%2Ba56BDQJU9g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages