Remapped the Caps Lock key on my keyboard to Escape instead of Control, because that’s apparently what you should do. Had to remove the Esc keycap to actually use it. Still pressing the uncapped Escape key, before realising it’s on the home row now.
It turns out remapping Caps Lock to Esc is apparently not the thing people do anymore. It’s Control again. As always; ignoring trends for long enough will make them go away.
So, I’ll also try remapping Caps Lock to Control, but actually using it this time. Since Control + [ can be used as Escape, that’d result in having Caps Lock as Control, and Caps Lock + [ as Escape.
But wait, there’s more! A third option I’m trying is remapping Caps Lock to Escape when pressed, and to Control when held down. You can set that up on macOS by using Karabiner-Elements (https://github.com/tekezo/Karabiner-Elements) and downloading a “complex modification” (https://pqrs.org/osx/karabiner/complex_modifications/#caps_lock).
Also: yes, I’ve now removed both the Escape and Control keycaps from my keyboard to get used to this.
@jkreeftmeijer I like to remap Caps to Escape, and Caps+Other Keys to Control+Other Key. You can have both. :)
@oz That’s a great tip, thanks! Tried that with Karabiner-Elements (https://github.com/tekezo/Karabiner-Elements) and a custom modification (https://pqrs.org/osx/karabiner/complex_modifications/#caps_lock) last night, and it seems nice so far.
The delay is a little too long for my liking, still, but I only run into that when pressing Caps Lock to exit insert mode, and immediately saving with :w in Vim.
@jkreeftmeijer I've done the same, but using Hammerspoon instead (see https://github.com/jasonrudolph/keyboard/blob/master/hammerspoon/control-escape.lua).
@timriley Great tip, thanks! Hammerspoon looks great, indeed. Any other automation you’re doing I’m missing out on, aside from the Caps Lock trick? :)
@jkreeftmeijer A couple!
I use URLDispatcher to open up certain links in specific browsers (see https://zzamboni.org/post/my-hammerspoon-configuration-with-commentary/)
And I also use the window layout shortcuts from https://github.com/jasonrudolph/keyboard#window-layout-mode, which was great, because I could replace Divvy (which I previously used) with an app whose config I can keep in source control — always a win!
@timriley these look great indeed. I’ve been using Hocus Focus (http://hocusfoc.us) to hide everything aside from the current window, and use splits in my full screen terminal, so never had much use for Divvy.
Replacing tools like that with scriptable versions sounds great, and I’d love to have them all in one place. Hammerspoon sounds great for that indeed, I’ll be sure to try it out. Thanks!
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!