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

Ignore caps lock in normal mode #4058

Open
cyphercider opened this issue Sep 9, 2019 · 3 comments
Open

Ignore caps lock in normal mode #4058

cyphercider opened this issue Sep 9, 2019 · 3 comments

Comments

@cyphercider
Copy link

Is your feature request related to a problem? Please describe.
Caps lock in normal mode causes havoc. After almost every time I type something in caps, I forget to turn off caps lock when returning to normal mode. I then try to move the cursor and end up joining a bunch of lines and a lot of other things I don't expect to be happening.

Describe the solution you'd like
Perhaps when in normal mode, VSCodeVim could ignore caps lock. If VSCodeVim cannot tell directly if caps lock is toggled, perhaps it uses the status of the shift key to drive behavior. If shift is pressed, the key is considered uppercase. If not, it is considered lowercase.

Describe alternatives you've considered
AutoHotkey works perfectly on Windows, because I can make the escape key also toggle caps lock off, so that after exiting insert mode, caps lock is off. However, I have been very frustrated finding a good solution on OSX or Ubuntu - both of which I use on a regular basis. It would be best if the extension could offer a platform-agnostic solution.

@lindhe
Copy link

lindhe commented Aug 17, 2020

Does it cause havoc, or are you just unfamiliar with the capital letters in normal mode in Vim? I think it would be a mistake to not have it emulate the original Vim behaviour.

@cyphercider
Copy link
Author

@lindhe definitely agreed that this option should not be toggled on by default. But for me, if I'm in normal mode, if I want to use the "A" command for example, I always push "shift + a". I don't want caps lock to be on in normal mode. If I'm editing a block of text that is in all caps, it would be nice to be able to go back and forth to normal mode without having to press caps lock on and off when I enter and exit normal mode.

@martin-braun
Copy link

This issue drives me nuts, because I use 10 finger typing and sometimes I have names that are all caps locked. On 10 finger typing I have to switch the shift key if I don't use caps lock, since some letters are left and some are right. This issue forces me to undo caps lock when leaving insert mode to prevent to mess up.

If VsCodeVim cannot detect caps lock, can it maybe at least release caps lock when leaving insert mode?

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

No branches or pull requests

4 participants