neovide icon indicating copy to clipboard operation
neovide copied to clipboard

CTRL+/ not working

Open BestChinchilla opened this issue 3 years ago • 4 comments

Describe the bug CTRL+/ not working

To Reproduce Steps to reproduce the behavior:

  1. Write noremap <C-_> :help<CR> in init.vim file
  2. 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

BestChinchilla avatar Aug 14 '22 22:08 BestChinchilla

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 avatar Aug 14 '22 23:08 MultisampledNight

@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.

eriedaberrie avatar Aug 15 '22 03:08 eriedaberrie

@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

BestChinchilla avatar Aug 15 '22 11:08 BestChinchilla

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.

MultisampledNight avatar Aug 15 '22 11:08 MultisampledNight

This should be fixed by #1899, it would be great if you can test that.

fredizzimo avatar Jun 18 '23 13:06 fredizzimo