KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
273 stars 18 forks source link

Add vim bindings in editor #2620

Open pierremtb opened 3 weeks ago

pierremtb commented 3 weeks ago

Reported by Custard Cannon on Discord on May 24th

since the editor is built with code-mirror are we able to switch to vim motions

franknoirot commented 6 days ago

Here's what I wrote in Discord:

I think that should be doable! We have an in-progress effort to make the keybindings for the whole app configurable (if the developer marks it as such), so I just have to give it a think about how a Vim mode will intersect with the rest of the keymap, and if toggling on that setting modifies the keymap on your behalf. That might get tricky if you've already edited your keymap, then you turn on that setting and we mess with a bunch of your keybindings? I think I need a diagram of the keybinding contexts to make sense of adding a modal layer to the text editor 😅