-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Windows dead keys problem #4864
Comments
The tutor file is here if you would like to contribute: https://github.com/helix-editor/helix/blob/master/runtime/tutor Whichever terminal emulator you are using on Windows is most likely stealing the I use foo(baz, bar) If your cursor is on the
|
Thx for the response, but regarding the terminal I believe it would be a great thing if helix just works out of the box on default windows cmd/powershell. I believe ~ and the backticks not working is related to the fact that on linux you can just press those keys and it appears on screen. While on windows to make them appear on screen you have to press space (doesn't work on helix) or press the key twice. So this makes it actually a helix bug as it's probably checking for it to receive the ` ~ keys and not the key press itself. Not sure why Ctrl+i doesn't work though, can't find any keybinds connected to it. Would be helpful if anyone knows. |
Huh that's interesting, I've had the same issue on Windows with WezTerm. I think the terminal ended up eating the command. The way I fixed it is by adding this to my WezTerm keybinds: { key="i", mods="CTRL", action=wezterm.action.SendKey { key="i", mods="CTRL" } }, Maybe there's something similar for the specific terminal emulator you're using.
I don't think it's possible for terminal apps like helix to directly listen to key scan codes, though I might be mistaken. You can check if you can disable "dead keys" in your terminal emulator ( |
There's also numerous spelling errors and missing stuff in the tutor file. Chapter 8.2 Macros comes to mind: says "it's" when it should say "its" for example. Chapter 6.3 Repetition is missing a line marked with |
@ElectricCoffee PRs with tutor improvements are appreciated |
@CptPotato Turns out C-i was just helix lacking the keybind that works for Windows. To avoid the dead keys problem I just added a US keyboard layout (not international) and it seems to work fine. I do respect that WezTerm went all the way for having a way to disable dead keys as it seems quite complex and Windows Terminal definitely can't do that. |
@lesleyrs did you take a look at this microsoft/terminal#5784? It looks like you should be able to get around that with one key bind per dead key. I'm not familiar with Windows Terminal though, so I can't exactly tell how you set this up correctly. |
@CptPotato Yea I saw that, surprisingly there is no general preset as far as I know. I don't mind what I'm using right now though. For future people: after adding a new keyboard layout, delete the old one and re-add it to switch the default. Also remove the ctrl+shift and alt+shift keybinds in settings and just use winkey+space for switching. |
I'll re-open this since I think there are still some tutor problems to resolve |
I think there was a misunderstanding with the tutor change in the PR like I said, but if @archseer doesn't want them I'll close this now. Also changed the title so the remaining useful information is easier to find. |
Some problems I came across when going through the tutorial:
Ctrl+i does not seem to work at all on windows 10 in cmd/powershell/windows terminal (Ctrl+o works), but it does work on linux.
Alt-( and Alt-) are confusing to use, maybe an example on how you would use this?
~ and Alt-` or without Alt work first try on linux, but on windows you have to press them twice for it to work most of the time.
The text was updated successfully, but these errors were encountered: