News for hackers. Stuff that matters.
Re:2018 Mac Mini Review by wild_preference on Tuesday November 06, 2018 @01:16PM (#18393466)
I tried to address this in my parentheses, but Karabiner specifically lets you bind CapsLock to both: Esc when tapped alone, and Ctrl when held down in combination with other keys.

And your post also answers you sibling comment: Ctrl modifier is useful outside of just Emacs.

Try it out. I believe the API changed in the macOS release before Mojave, so they relaunched Karabiner under the name Karabiner Elements. This option is under the "Complex Modifications" tab.

If I was writing a list of tricks for macOS power users to try, this would be my number one. Up there with binding a global show/hide hotkey for iTerm (I use Ctrl-Space, thus CapsLock-Space).

Re:2018 Mac Mini Review by Fnoord on Tuesday November 06, 2018 @02:50PM (#18394335)
I prefer Magic Trackpad 2 (or native MBP 2015 trackpad) to any other way of navigation but Vi keybinds -if available- work as well.

I currently use Karabiner for this as well, but a slightly different configuration.

The two rules I use are:

* R-Cmd + hjkl are arrows (which works great with HHKB but even on native MBP it requires less movement of hand from trackpad or typing hand than the arrow keys)

* Caps solo is Esc while Caps with another key equals Ctrl.

Is there a way to do this in Linux as well? I currently have to use Linux regularly and I rebind Caps to Ctrl however for Vim it isn't ideal. So I'd like to have the same functionality I have with Karabiner on Linux (Xorg / console).

Re:2018 Mac Mini Review by tincholio on Thursday November 08, 2018 @07:28AM (#18405788)
You can use xcape on linux to do this. I use it to map CAPS to CTRL/ESCAPE, and right shift to RIGHT SHIFT/COMPOSE
Re:2018 Mac Mini Review by dark_star on Tuesday November 06, 2018 @03:16PM (#18394542)
I use Karabiner Elements to bind backtick (grave accent) to Esc, Command-backtick to Command-backtick as normal (so you can switch between windows of the same app), and Option-backtick to backtick.

It's not optimal, but I do it because backtick is about the same position as a hardware Escape key. It makes using vim feel ok again.

This option is available from the KE Complex Modifications tab.

Re:2018 Mac Mini Review by bobbyi_settv on Tuesday November 06, 2018 @04:32PM (#18395080)
Note that this means you lose the ability to use option-backtick for diacritic marks. Normally option-backtick followed by a makes "à", Option-backtick followed by e makes "è", etc
Re:2018 Mac Mini Review by malloryerik on Thursday November 15, 2018 @11:15PM (#18466350)
This isn't working for me in Mojave; you haven't had a problem?
Re:2018 Mac Mini Review by jimmcslim on Tuesday November 06, 2018 @05:49PM (#18395608)
In this mode... if you hold down CapsLock as Ctrl and then don't decide to press another modifier... does it still fire CapsLock as Esc?
Re:2018 Mac Mini Review by philwelch on Wednesday November 07, 2018 @09:11PM (#18403897)
I already have a ctrl key, though. Whatever works for you, though--personally, I prefer not installing extra third-party systems-level software over making ctrl marginally more convenient to press.