single/double click events

21 views
Skip to first unread message

M Kelly

unread,
Feb 23, 2020, 9:02:27 AM2/23/20
to tmux-users
Hi,

Can I have both:

bind -T copy-mode-vi C-MouseUp1Pane - do A
bind -T copy-mode-vi C-DoubleClickl1Pane  - do B

It seems the mouse up from the double-click triggers A so I can never really get B by itself ?
Does that make sense ?

thx,
-m

Nicholas Marriott

unread,
Feb 23, 2020, 9:14:57 AM2/23/20
to M Kelly, tmux-users
Yes that right, mouse up is part of double click.

--
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/c88002b6-680e-4a3b-b8d3-f841e08954c9%40googlegroups.com.

M Kelly

unread,
Feb 23, 2020, 10:03:09 AM2/23/20
to tmux-users
Hi,

ok, so as it is now I get A-B-A
If I change it to:

bind -T copy-mode-vi C-MouseDown1Pane - do A
bind -T copy-mode-vi C-DoubleClickl1Pane  - do B

I would get A-A-B, right ?

Do you think there might be a way to use a LEADER or something to only do B on a double-click ?

thx,
-m

M Kelly

unread,
Feb 23, 2020, 10:06:37 AM2/23/20
to tmux-users
Hi,

I think I'm good with using Down so that the double-click mapping is the last one run.

-m

Nicholas Marriott

unread,
Feb 23, 2020, 10:06:55 AM2/23/20
to M Kelly, tmux-users
Yes you could put them if different key tables and set up the root table so you need a different prefix key for each.

Or you could use a modifier like ctrl for one and a different modifier for the other.




--
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.
Reply all
Reply to author
Forward
0 new messages