Enable Vim/Helix keybindings when the base keymap is set to None#54899
Enable Vim/Helix keybindings when the base keymap is set to None#54899NeelChotai merged 1 commit intozed-industries:mainfrom
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @profojak on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
NeelChotai
left a comment
There was a problem hiding this comment.
Nice, thanks for the contribution!
|
I haven't seen this coming. Wouldn't it be more appropriate to add another option like @NeelChotai The "None" map was introduced on purpose in #9471 specifically to clear the map entirely. This change is breaking it. Can it be reverted? P.S. My situation is this: the Zed setup is based on a clean base map, and all my keybindings are non-standard. This change introduces many unwanted mappings and makes the setup much harder to maintain. |
…one (zed-industries#54899)" This reverts commit db76d15.
|
Sorry about that, revert is here: #55144 |
…one" (zed-industries#55144) Reverts zed-industries#54899 Release notes: - Reverted the "none" keymap to be literally nothing
|
Thanks for your feedback @xab3r! I submitted this pull request because it felt like a bug: you toggle the Vim/Helix mode while having base keymap set to I agree a Vim/Helix base keymap is a good compromise, but I think the UI also has to change to communicate this effectively. Imagine you set the keymap to Vim/Helix, but do not really have Vim/Helix behavior, until you also toggle the Vim/Helix mode? To me, from a UI perspective, it makes much more sense to apply Vim/Helix key binds on top of empty base keymap. I would propose something like |
|
@profojak vim/helix mode rely on a number of keybindings from the default keymap; so I think that having none mean none is the right approach. What are you trying to do? (In hindsight, I think it was a mistake to allow none at all, but seems like that ship has sailed and people are relying on it). |
|
@ConradIrwin I wanted to turn off all the key bindings and only enable in-editor Vim/Helix key shortcuts. Setting base keymap to |
…one (zed-industries#54899)" This reverts commit db76d15.
…-industries#54899) Hi! 👋 When `base_keymap` is set to `None`, it disables all the keybindings, even if `vim_mode` or `helix_mode` is enabled. However, I think the Vim/Helix keybindings should be applied on top of the empty base keymap. My use case for this is to start with the minimal set of Vim/Helix key shortcuts and add other bindings on top of that, instead of flooding the keymap with hundreds of predefined shortcuts from some base keymap.
…one" (zed-industries#55144) Reverts zed-industries#54899 Release notes: - Reverted the "none" keymap to be literally nothing
Hi! 👋 When
base_keymapis set toNone, it disables all the keybindings, even ifvim_modeorhelix_modeis enabled. However, I think the Vim/Helix keybindings should be applied on top of the empty base keymap.My use case for this is to start with the minimal set of Vim/Helix key shortcuts and add other bindings on top of that, instead of flooding the keymap with hundreds of predefined shortcuts from some base keymap.