-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Extension: low priority keybindings support #10004
Comments
@aioutecism You can always make your key binding more restrictive by adding more when clauses. For eg, in this case, you can let For more information refer to our sample vim extension code here - https://github.com/Microsoft/vscode-extension-samples/blob/master/vim-sample/package.json#L21 |
Keybinding context won't solve the problem. For example, when suggest widget is shown in Vim's insert mode, escape should close the widget instead of exiting to normal mode. I cloud add
Besides, |
@aioutecism Your argument makes sense to me. @alexandrudima @jrieken Is there a way to provide priorities for key bindings? |
Internally yes but externally no. I believe extension and user config gets the highest prio since that are something more explicit. I believe this must be tackled with a long and complex |
@aioutecism In this case, having a complex |
Appending all the default |
In my Vim extension,
escape
is overridden in order to mimic Vim's behavior:This overrides
escape
's default behaviors since VSCode appends extension keybindings to the end of default keybindings.However, we need only to handle
escape
when none of the default behaviors got invoked. (So user can dismiss messages, cancel suggestions, etc.)A low priority keybindings which are prepended to the VSCode's default keybindings should solve my problem.
The text was updated successfully, but these errors were encountered: