-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Ctrl + [ doesn't function as Escape in helix 23.03 #6551
Comments
Yeah, the enhanced keyboard protocol change was breaking if you are relying on ambiguous keycodes like On the other hand though, this could be covered by a config option which overrides the detection, |
|
I also don't think that using For what it's worth you can run hx inside tmux for the moment as a workaround. |
These two other control character mappings, backspace |
Not sure if this is related or not, but I'm having a similar issue. Is there anything else I could do to provide more details to diagnose the issue? Thanks! |
With neither |
you can always rebind the keymapping in your own config. The enhanced keyboard protocol simply allows disambiguating more keys (like |
@pascalkuthe can you provide an example?
|
@sdemura, almost :) what you want is: [keys.insert]
"C-[" = "normal_mode" |
but this workaround can't substitute all the esc usage with 'Ctrl-[', so a feature of keycode remapping should be the best solution. |
This doesn't work for me with |
Termux does not support the kitty enhanced keyboard protocol which allows disambiguation of these keycodes. Since terminal multiplexers essentially function as a terminal proxy they must support all of the features of the host terminal (that the user wants to use) |
If tmux doesn't support the disambiguation of ctrl-[ and esc, then shouldn't ctrl-[ work as esc in helix? or am I misunderstanding something? |
You can check whether it's enabled by checking the log when running in verbose mode: https://github.com/helix-editor/helix/wiki/Terminal-Support#enhanced-keyboard-protocol It sounds to me like tmux is probably eating the keycode. |
- use familiar ctrl + [ (left bracket) mapping - see helix-editor/helix#6551 for discussion
Came here as someone who has been evangelizing mapping CAPS LOCK to CTRL and then using ctrl-[ in vim for over 20 years now. Specifically as someone who has RSI issues and is able to use caps_lock-[ with two very subtle finger movements vs. any alternative. If it was a mere accident that that worked, it's an accident that was true for every combination of vi/vim/nvim/etc. in every terminal emulator and every operating system I've ever used. |
Yes I agree, I think all of this talk of |
Hi, just came here to say hat I love helix, and wanted to voice my support that mapping control to caps lock and using C-[ is not a niche use case and should please have first class support. Since I am just some guy on the internet, I'll try to supplement my argument with some appeals to authority in hopes that this rhetorical flourish will convince people :)
I can also try and hop on to help with the implementation if this is a resource issue. |
In case it helps anyone… until Helix supports this, using keyd to map [control]
[ = esc |
There is a couple of settings in In particular the following:
In Helix, found the following mapping to be particularly efficient: Ctrl + space
|
My |
To advocate for They are in their right to notice, this is a very old behavior in VT100 terminal that To verify that, we may simply use
Further documentations can be found with keywords: control-escape sequence VT100 I do personally, as a non-Qwerty keyboard user, have to use the key combo However I do warmly recommend that Helix supports |
This is required due to a regression in Helix 23.03, reported at helix-editor/helix#6551
I think this is because of the new enhanced keyboard protocol enabled in 23.03. Is there a way to disable it? Although I can remap Ctrl+[ to mode change command, escape has more functions than only mode change. For example, when you enter
:
to type command, you can't return back to normal mode using Ctrl+[. And there is no way to remap a key combination to a specific keycode in helix, which is available in vim.The text was updated successfully, but these errors were encountered: