Mouse support on but without copy and paste

73 views
Skip to first unread message

Konomi

unread,
Dec 7, 2020, 8:07:33 AM12/7/20
to tmux-users
Is it possible to `set -g mouse on` but then unbind the copy and paste functions? I'd really like to just to be able to switch tabs with the mouse and nothing else. Thanks in advance.

Nicholas Marriott

unread,
Dec 7, 2020, 8:09:21 AM12/7/20
to Konomi, tmux-users
On Mon, 7 Dec 2020 at 13:07, Konomi <konomi...@gmail.com> wrote:
Is it possible to `set -g mouse on` but then unbind the copy and paste functions? I'd really like to just to be able to switch tabs with the mouse and nothing else. Thanks in advance.

--
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/965af321-fdfc-4531-b860-85c026405918n%40googlegroups.com.

Konomi

unread,
Dec 7, 2020, 9:49:38 AM12/7/20
to tmux-users
I tried doing `unbind -n MouseDrag1Pane` and that stops dragging to select in tmux but it also prevents the underlying terminal getting the MouseDrag event as well. How do I make sure it sends it through to the underlying terminal?

Nicholas Marriott

unread,
Dec 7, 2020, 9:50:04 AM12/7/20
to Konomi, tmux-users
Read the link I sent.



Konomi

unread,
Dec 7, 2020, 9:52:36 AM12/7/20
to Nicholas Marriott, tmux-users
I did read the link you sent. I don't see how that helps telling tmux
to send the mouse event to the underlying terminal?

Nicholas Marriott

unread,
Dec 7, 2020, 9:53:43 AM12/7/20
to Konomi, tmux-users
Read the second paragraph.

Konomi

unread,
Dec 7, 2020, 10:01:05 AM12/7/20
to Nicholas Marriott, tmux-users
Sigh sorry and that's disappointing I'll have to think of some other
way to handle this. Thanks for your time.

On Tue, 8 Dec 2020 at 01:53, Nicholas Marriott

Scott Rochford

unread,
Dec 7, 2020, 6:51:23 PM12/7/20
to Konomi, Nicholas Marriott, tmux-users
Most terminal clients allow you to invert the shift- toggle behaviour, so if you prefer the mouse events to go to the underlying terminal most of the time, and only use shift-click when switching tabs, then that might work well for you.

In putty it's under PuTTY Configuration -> Window -> Selection -> Shift overrides application's use of mouse.  In mintty it's Options -> Mouse -> Application Mouse Mode -> Default click target / Modifier for overriding default.


Doug Beck

unread,
Mar 29, 2022, 5:36:00 AM3/29/22
to tmux-users
Can a code collaborator update:
https://github.com/tmux/tmux/issues/140

Adding a link to the FAQ:
https://github.com/tmux/tmux/wiki/FAQ#i-want-to-use-the-mouse-to-select-panes-but-the-terminal-to-copy-how

This github issue is the first/best Google result and the issue is closed without any helpful information. Concluding that ticket with a link to the FAQ will hopefully provide others with context on why this is not possible (and would have saved me a good bit of time trying all the suggested config).
Reply all
Reply to author
Forward
0 new messages