CTRL+/ not working
Describe the bug CTRL+/ not working
To Reproduce Steps to reproduce the behavior:
- Write
noremap <C-_> :help<CR>in init.vim file - Reload cfg and try to CTRL+/
Expected behavior In neovim opens help page
Desktop (please complete the following information):
- OS: Windows 10 21H2 LTSC
- Neovide Version: 0.9.0
- Neovim Version: 0.7.2
Thank you for reporting! I'm not sure if I'm understanding the issue correctly though. <C-_> literally maps Ctrl and _ together, / is nowhere to be found in that sequence. Probably you've meant to map <C-/> instead?
If not, that sounds like a layout vs. printed character on keyboard mismap issue. What keyboard layout are you using and which one is printed on the physical keyboard?
@MultisampledNight I use exclusively Windows for Neovim like OP so I'm not sure about other platforms/terminal emulators but in both Windows Terminal and conhost I've found that the key combination ctrl+slash is captured by <C-_>, while neither <C-/> nor <C-_> seem to be able to capture it in Neovide.
@MultisampledNight <C-_> is maps to CTRL+/
You can check it in neovim by typing / and after that press CTRL+/ you would see symbol ^_
The problem is that neovide doesn't recognize the keyboard shortcut
Keyboard layout: Eng US
I see. Switching my layout to the US one and trying it out in nvim + alacritty on Arch Linux, <C-_> only fires upon Ctrl + Shift + -, not upon Ctrl + /. Mapping <C-/> works on my system though. Which makes me think this is either a Windows-specific issue or my understanding of keyboard input is plainly wrong.
According to the article about ASCII caret notation, Ctrl + / on the US layout is interpreted as... DEL, which is ^?. I'm not sure how up-to-date that note is, which cases and which systems it applies to though.
This should be fixed by #1899, it would be great if you can test that.