-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support Alt+<key>
to act as ESC <key>
(ref: Emacs/Neovim/Iterm2)
#3162
Comments
I'm not sure we get enough events from crossterm to implement this: alt and shift are both modifiers so I don't think we get a KeyEvent for them being pressed/held in conjunction |
I don't think neovim has this shortcut either? It does have |
umh, maybe it just uses alt for that. anyways, the instance is that: inside nvim, say i am in edit mode, then either i do: Update:i retried
|
i have added my clarifications in the description, sorry for the confusion created earlier. offtopic Prasies:
none but this issue
|
This comment was marked as outdated.
This comment was marked as outdated.
Please don't ping :) The keys in the description can be bound with config: # ~/.config/helix/config.toml
[keys.insert]
"A-:" = "command_mode"
"A-0" = "goto_line_start"
"A-$" = "goto_line_end" |
This comment was marked as outdated.
This comment was marked as outdated.
Refer/quote:
I found that
notice the space vs hyphen:
trail:
|
# ~/.config/helix/config.toml
[keys.insert]
"A-:" = "command_mode" is there some way for me to set this "Meta character/modifier" scheme as a substitute for all the two-character sequences starting with ESC, or will I have to add the shortcuts in the configuration for every one of them?? |
self hiding as offtopic Update: 2023.01.12:
These "3 escapes" refer to:
Note to self:
|
aah yes, found it:
trail & links:found via following links from helix's documentation itself 😆
|
third reference: Iterm2 (again, found from helix documentaion itself)
|
Alt+<key>
to act as ESC <key>
(ref: Emacs/Neovim/Iterm2)
hey helix team members! can you please add just this one feature?? i humbly request you to please consider this 😢 this is like the only thing stopping me from using helix - rest everything can be overlooked one time or the other; but this - switching mode - is as fundamentally repeating operation as any manual interaction in helix can get; easing that operation would make a huuge difference |
|
you can map this if you want but we are not going to change the default mapping |
Details
alt
+key
or sayAlt-<key>
in insert mode should perform theesc
>key
or sayEsc <key>
i.e.esc
to exit, thenkey
alt
+key
"does not have an insert-mode mapping."Examples from
nvim
:esc
> colon (shift
+semicolon
)alt
+ colonesc
>0
alt
+0
esc
> $ (shift
+4
)alt
+ $Reference:
Question for achieving this via config: #3162 (comment)
Quoting/citations for this behaviour from other editors
Alt+<key>
to act asESC <key>
(ref: Emacs/Neovim/Iterm2) #3162 (comment)Alt+<key>
to act asESC <key>
(ref: Emacs/Neovim/Iterm2) #3162 (comment)Alt+<key>
to act asESC <key>
(ref: Emacs/Neovim/Iterm2) #3162 (comment)Title and Summaries:
alternate rephrasals of the issue:
The text was updated successfully, but these errors were encountered: