-
Notifications
You must be signed in to change notification settings - Fork 722
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
[BUG] execute-keys inconsistency when evaluating literal control characters #5284
Comments
It looks like Kakoune only accepts control characters that map to non-modified keys, so Lines 100 to 109 in 28a82b0
The syntax that I don't think this is a bug, as such. To avoid confusion in the future, it might be a good idea for |
Could you expand on why you would need this ? Both behaviours look reasonable to me. |
Honestly it's for code golf challenges, typing character literals is fewer keystrokes than typing out the key representations. I totally understand why you wouldn't make this work especially since it's pretty niche and it's impossible for keys with the alt modifier anyways. Absolutely not a big deal, just fun nonsense. |
Version of Kakoune
v2024.05.10
Reproducer
Ok this is a little confusing to write out because we're dealing with literally writing out things that would normally signify a key press.
to reproduce bug type these two expressions out in kakoune
:exec i<control r literal char>#
written likeexec i
then insert the<c-r>
char by pressing<c-v><c-r>
then adding#
after:exec i<c-r>#
when written char for char literallythese output different results
Outcome
output of first expression
-> writes
#
at each cursoroutput of second expression
-> writes the index of the cursor at each cursor
Expectations
both expressions should write the index of each cursor at each cursor
the
<c-r>
literal character should be evaluated the same as literally typing out<c-r>
Additional information
I've already tried enclosing the expressions in quotes, it doesn't make a difference
The text was updated successfully, but these errors were encountered: