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

Can't rebind "C-/" (Ctrl + forward slash) #1369

Closed
adsick opened this issue Dec 25, 2021 · 5 comments
Closed

Can't rebind "C-/" (Ctrl + forward slash) #1369

adsick opened this issue Dec 25, 2021 · 5 comments
Labels
A-keymap Area: Keymap and keybindings C-bug Category: This is a bug

Comments

@adsick
Copy link

adsick commented Dec 25, 2021

the config.toml seems valid, but pressing Ctrl + / does nothing, maybe I'm doing something wrong?

"C-/" = ["toggle_comments"]
@adsick adsick added the C-bug Category: This is a bug label Dec 25, 2021
@adsick
Copy link
Author

adsick commented Dec 25, 2021

Ctrl + c works as expected btw

@kirawi kirawi added the A-keymap Area: Keymap and keybindings label Dec 25, 2021
@matoous
Copy link
Contributor

matoous commented Dec 25, 2021

I tried using wezterm which doesn't seem to have this key combination binded to anything and can reproduce.

@NNBnh
Copy link
Contributor

NNBnh commented Dec 25, 2021

This is a limitation of the terminal, try showkey -a and press Ctrl+/ and even Ctrl+7, they can't be differentiated and both produce this keycode:

$ showkey -a

Press any keys - Ctrl-D will terminate this program

^_ 	31 0037 0x1f
^_ 	31 0037 0x1f

Unless Helix support Kitty terminal's Keyboard handling protocol, there is nothing we can do to fix this.

@the-mikedavis
Copy link
Member

Fixed by #4939

@zicklag
Copy link

zicklag commented Oct 5, 2023

If anybody else runs into this, ( I'm running into it on alacritty and gnome-terminal even after building of the latest master ( 68fce3e ), then you can workaround just by binding to C-7 instead of C-/. Not sure what's going on, but that makes Ctrl+/ work. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-keymap Area: Keymap and keybindings C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

6 participants