Skip to content
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

Unable to remap control and shift on MacOS (Kitty terminal emulator) #6181

Closed
rkshthrmsh opened this issue Mar 4, 2023 · 5 comments
Closed

Comments

@rkshthrmsh
Copy link

Remapping the control and shift keys on MacOS is not working (Kitty terminal). I understand that the option key requires remapping to alt on MacOS as mentioned in #2280. But I could not find anything similar for the control and shift keys. Here is a part of the config.toml:

[keys.select]
"C-esc" = "remove_primary_selection"
@the-mikedavis
Copy link
Member

What version of Helix and Kitty terminal are you running? It is possible to bind commands to this key-combination now after #4939 has been merged if you are using a terminal emulator that supports the enhanced keyboard protocol (Kitty does).

I'm not sure if this is a typo in the post but that key combination in the config.toml example is holding Ctrl and hitting Escape rather than Shift. We can't bind keys to presses of modifier keys like Ctrl, Shift or Alt - the key combination also needs any other non-modifier key.

With an example config of:

[keys.normal]
C-esc = "toggle_comments"

and pressing Ctrl+Escape, I see toggle_comments being run when running Helix from master.

@rkshthrmsh
Copy link
Author

I am on Helix 22.12 and Kitty 0.27.1.
With the config.toml, I was just giving an example of a key combination that I could not bind. Have tried both C- and S- without success.

@the-mikedavis
Copy link
Member

the-mikedavis commented Mar 5, 2023

Are you building Helix from source? #4939 is the change that allows remapping C-esc and S-esc and it was merged more recently than the 22.12 release. Also see https://github.com/helix-editor/helix/wiki/Terminal-Support#enhanced-keyboard-protocol

@rkshthrmsh
Copy link
Author

I am not. Will try it out soon. Any idea when this might be bundled into a release?

I will close this issue now. Thanks for the help, @the-mikedavis.

@the-mikedavis
Copy link
Member

We try to cut a release every few months (see https://github.com/helix-editor/helix/wiki/FAQ#when-will-the-next-release-be). We're tentatively thinking of mid/late March for the next release if we can find the time to review and merge everything we want to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants