Skip to content

fix(keymap): disable preset keymaps with false #1859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 9, 2025
Merged

Conversation

soifou
Copy link
Collaborator

@soifou soifou commented Jun 5, 2025

Previously, setting a keymap to {} did not actually disable the
mapping. You can now set a keymap to false to explicitly disable
it. This is clearer and works as expected.

Closes #1855

Previously, setting a keymap to `{}` did not actually disable the
mapping. You can now set a keymap to `false` to explicitly disable
it. This is clearer and works as expected.

Closes #1855
@soifou soifou force-pushed the fix/keymap-disable branch from 043f9cd to 4c4ba12 Compare June 5, 2025 19:10
Copy link
Owner

@Saghen Saghen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed #1855 with 94000bd but I agree that false is much more clear. Left one nitpick but overall seems like a great change

@Saghen Saghen merged commit 0d9a7e4 into main Jun 9, 2025
4 checks passed
@Saghen
Copy link
Owner

Saghen commented Jun 9, 2025

Thanks!

@Saghen Saghen deleted the fix/keymap-disable branch June 9, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unsetting keybindings doesn't work as documented
2 participants