Hacker News new | ask | show | jobs
by ayyy 1911 days ago
Protip: remap capslock to escape. It's supported in the OS settings.
2 comments

That's what I've done, but I hate having to adjust my typing habit. It's annoying enough that thanks to the touch bar I'm now incapable of typing escape on any other computer (because I'm in the habit of merely touching escape, not pushing it), now I have to adjust again and I'm going to be in the habit of pushing caps lock.
GNU Readline has destroyed my ability to work on non-readline editors. It's worse when I am using a machine where caps lock means caps lock. I have it bound to control (on hold) and escape (on tap). When I typo on a different machine and reflexively type ^A^K to kill the line, it comes out as capital "AK" instead. Repeat multiple times.
That's actually a good habit to build.

Here's a windows utility you might find useful: https://github.com/susam/uncap

And here's an editor that's accommodating to your newly trained typing skills ;) https://www.vim.org/

Long play to plug vim.

Good work.

I had to break this habit as well, and also as a result of the touchbar. I empathize with this struggle, it took me a couple of weeks to get used to capslock escape, but it was worth it.
Believe me, you'll love using Caps Lock instead of ESC very soon. I switched the two using Karabiner (for mac) and I wonder how I used computers all those years before that. If you use vim (or vimium on Firefox), you'll absolutely like this change.
Caps Lock as ESC on short presses and Cmd+Opt+Ctrl+Shift (Meta key) on long presses has opened up a lot of shortcuts on IDEs and OS for me.

It's been so many years that I can't remember how it is not having these combos.

You can switch it in keyboard preferences under “modifier keys” now, no need for Karibiner any more. Can’t remember when this was changed but it was a few years back
I feel like that’s where the control key needs to be, I use that way more than escape, especially in combination with other keys and so it’s best when I can reach it easily.