zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.25k stars 2.03k forks source link

Vim Mode: Disable Mouse #11467

Open RobinRuf opened 1 month ago

RobinRuf commented 1 month ago

Check for existing issues

Describe the feature

Feature

In Vim, it is possible to disable the mouse completely. You can click inside of vim wherever you want but the cursor doesn't change its position. Also scrolling with the mouse isn't possible then.

Maybe this is something to add for vim mode settings?

Implementation Idea

If so - two separate options would be nice: The ability of scrolling with mouse (on/off) and the ability of disabling the mouse (clicking without changing cursor position)

If applicable, add mockups / screenshots to help present your vision of the feature

No response

0x2CA commented 1 month ago

Disabling the mouse allows you to really test the keyboard-accessible,find problems with vim

baldwindavid commented 1 month ago

Think that would be nice to eventually have. Somewhat related: I use vim mode and one thing that initially frustrated me was when I had to use the mouse in another app and then moved the cursor back to Zed. If the cursor happened to land over a hoverable item, a popover would appear that I didn't want to see. Anyway, if you're running into the same problem, there is a hover_popover_enabled setting that eliminates that specific issue.