zellij icon indicating copy to clipboard operation
zellij copied to clipboard

[feature request] switch between mouse_mode enabled/disabled

Open camillebernier opened this issue 2 years ago • 5 comments

Hello, as mentioned in issue 1330, would it be possible to add a new feature that would allow switching between mouse_mode enabled/disabled in live ? Maybe like the scroll mode but with another keybinding (CTRL + m), without having to change the config.yml every time ? That would be great, thanks !

camillebernier avatar Jul 26 '22 07:07 camillebernier

Sounds great - only thing is we need to put it in one of the modes by default. I'd go for scroll/search mode.

imsnif avatar Jul 26 '22 07:07 imsnif

I would appreciate an option key for not sending mouse clicks to the application inside the pane: I often find myself clicking into a pane to switch focus to it, but I don't want vim to move the cursor location.

Maybe the implementation could also contain a feature to only switch pane focus with e.g. shift+click and not sending the mouse event to the application?

raphCode avatar Jul 26 '22 15:07 raphCode

@raphCode - how about we rig it so that mouse clicks will only be sent to focused panes?

imsnif avatar Jul 26 '22 18:07 imsnif

That would work for me too. Mouse clicks to an application may require a double click then if the pane was previously unfocused. If it doesn't break someone's workflow, I am fine with that solution.

raphCode avatar Jul 28 '22 13:07 raphCode

@raphCode - how about we rig it so that mouse clicks will only be sent to focused panes?

I actually just ran into a solution where this would be inconvenient and I would prefer a solution like shift+click: Clicking in the terminal emulator to raise its window to the front, so I can type into the terminal. When I click into the zellij pane which is currently focused, this would send the click to the app inside the pane (e.g. move cursor in vim).

raphCode avatar Aug 01 '22 20:08 raphCode

Has this feature been supported?

naosense avatar Dec 12 '22 23:12 naosense