-
-
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
Mapping unicode characters with Ctrl doesn't work (but Alt does) #5765
Comments
After this I tried out C-ret, C-comma (as "C-,") and C-period (as "C-."), which didn't work. C-minus is probably reserved by the terminal, seeing as how it changed size when I tried it. Alt works as expected. |
Yeah like I said there are some keybindings that are handeled by the terminal emulator and forwarded in a certain way to helix. There is nothing we can do about that. The only workaround is #4939 which uses a specical protocol supported by some terminal emulators to recive raw keyevents. Even then some emulators may still intercept some keybindings if they are bound to emulator specific functionality (like zomming in your example). Therre is nothing we can do about that |
Tried out the newest commits, and didn't work (as expected), but still, gotta try. Some clarification: so the issue is that (basic) terminals just don't have support for Ctrl plus anything that isn't in a specific subset of ASCII? Is the "fix" just "use kitty"? |
There is fundamentally nothing a tui application can do about this problem except implement a protocols the emulator supports. Besides kitty this protocol is also supported by a few other emulators like wezterm, see https://sw.kovidgoyal.net/kitty/keyboard-protocol/. There seems to be issues (with a cautiously positive response) for implementing the feature in iterm2 and alacrity. But for now you do need to switch to an emulator that supports the protocol if you want to create these bindings |
Summary
Mapping "C-ö" or "C-å" does not work, but "A-ö" and "A-å" does.
Reproduction Steps
MATE Terminal, Helix built from source today.
config.toml:
I'm using a Finnish keyboard layout (with modifications) and I will be continuing using a Finnish keyboard layout, so it would be handy to rebind characters on the keyboard, and Ctrl is in a much more comfortable position, so it's a shame that it doesn't seem to work. I could have sworn that it worked for a hot minute earlier today, but I am probably confusing it with an attempt to use Alt-ö instead, which does work, as does Alt-å. Ctrl-p (just to test) works fine.
I checked what is actually written in config.toml (in case something funky like decomposing ö into o+combinding diaresis happened), and it's just Unicode decimal point 246.
Helix log
The log did not contain anything pertinent. Mostly complaining I haven't bothered to install a .toml LSP.
Platform
Linux Mint 20.2
Terminal Emulator
MATE 1.24.0
Helix Version
22.12-200-g0f562dfe
The text was updated successfully, but these errors were encountered: