Skip to content
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

Check if a chord is active #9005

Open
musjj opened this issue Apr 25, 2024 · 0 comments
Open

Check if a chord is active #9005

musjj opened this issue Apr 25, 2024 · 0 comments

Comments

@musjj
Copy link

musjj commented Apr 25, 2024

Is your feature request related to a problem? Please describe.
When creating mappings in keybindings.json, it's possible to create a collision with a Vim chord.

So for example, you have a shift+k in your keybindings.json and [ "ctrl+w", "K" ] (or [ "ctrl+w", "shift+k" ], it doesn't matter) in your vim.normalModeKeyBindings. shift+k will take priority here, making [ "ctrl+w", "K" ] impossible to trigger.

Describe the solution you'd like
A way to detect if there's a currently active chord. The condition can then be put into when, to ensure that it doesn't shadow the chord.

Describe alternatives you've considered
You can map the keybind in your vim.normalModeKeyBindings, but some commands don't behave properly as a Vim binding for some reason. For example, editor.action.showHover (gh) doesn't behave properly when mapped as a Vim binding: #3740 (comment)

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

No branches or pull requests

1 participant