You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm not able to set keybindings contextually. For example, I would like to set <leader> + m + p as an action to preview content, and that depends on the programming language. At a higher level, I'm trying to replicate Spacemacs's major modes.
Using when seems to be a no-op. In the example below, both commands are executed regardless of the current editorLangId.
Describe the solution you'd like
To support when in elements inside commands, as in:
Describe alternatives you've considered
Set shorcuts in keybindings.json. I wouldn't be able to differ between vim modes, though. And I guess it would make my <leader> inconsistent.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm not able to set keybindings contextually. For example, I would like to set
<leader> + m + p
as an action to preview content, and that depends on the programming language. At a higher level, I'm trying to replicate Spacemacs's major modes.Using
when
seems to be a no-op. In the example below, both commands are executed regardless of the currenteditorLangId
.Describe the solution you'd like
To support
when
in elements insidecommands
, as in:Alternatively,
when
could be supported in the command root:Describe alternatives you've considered
Set shorcuts in
keybindings.json
. I wouldn't be able to differ between vim modes, though. And I guess it would make my<leader>
inconsistent.The text was updated successfully, but these errors were encountered: