Please consider adding "has_selection" key to Editor context #40045
iamvoidcoder
started this conversation in
Config, Settings and Keymaps
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I keep missing badly a rather basic functionality: an ability to configure some editor conditional key bindings depending on whether the text selection is present or not. This is trivial in VSCode, Sublime and other editors as there is an out of the box context / condition selection presence flag:
E.g. VSCode equivalent:
This sounds like a super trivial mod. Could be just an extra "has_selection" key in the existing "Editor" context so the bindings can be matched against:
"context": "Editor && has_selection"Please 🙏🙏🙏
Beta Was this translation helpful? Give feedback.
All reactions