Use self-insert in a function #9838
Replies: 1 comment 1 reply
-
This is fundamentally #3031 - So this is currently essentially impossible, sorry. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a keybinding like
The function looks like:
The idea is when i press a regular key and there is a selection then it will replace the selection. Else, it will just self-insert. But when I use this setup, pressing other keys has no output.
It has been earlier done with:
And the keybinding looked like:
In this approach, i do not think
commandline --insert
does what i understood it does. My assumption was,commandline --insert
insert something keeping anything before or after the cursor intact. But in this particular case, string after the cursor gets changed.Beta Was this translation helpful? Give feedback.
All reactions