News for hackers. Stuff that matters.
Re:2018 Mac Mini Review by reaperducer on Tuesday November 06, 2018 @11:46AM (#18392609)
The touchbar made me realize that I have a habit of resting my fingers up there. I came to this realization because when I didn't think I was typing anything, stuff would happen. Eventually I realized I was touching virtual buttons on the touchbar.

I don't hate it, but I wish more of the tools I use took advantage of it.

I think it could be massively improved by shortening it a little on the left to make room for a physical escape key. That's about 95% of my problem with it.

Re:2018 Mac Mini Review by wild_preference on Tuesday November 06, 2018 @12:09PM (#18392827)
Consider mapping CapsLock to Esc (and Ctrl when long-pressed) with Karabiner. I haven't used my physical Esc key since 2014 or something. Might help with your issue.
Re:2018 Mac Mini Review by philwelch on Tuesday November 06, 2018 @12:36PM (#18393084)
You don't need a third party tool; System Preferences does this for you already. (Maybe not the long-press, but I'm vim, not emacs).
Re:2018 Mac Mini Review by copperx on Tuesday November 06, 2018 @12:45PM (#18393182)
If you remap CapsLock to Esc, what key do you use for Control for doing Control A, Control E, Control K, Control Y, Control N, and Control P in every application?
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.
Re:2018 Mac Mini Review by michaelmrose on Tuesday November 06, 2018 @01:48PM (#18393789)
Are you denoting control+shift+a as control-A?
Re:2018 Mac Mini Review by copperx on Tuesday November 06, 2018 @08:55PM (#18396595)
No, I was just typing on a phone. I meant control+a (start of line), control+e (end of line), etc.
Re:2018 Mac Mini Review by dmix on Tuesday November 06, 2018 @03:06PM (#18394454)
Capslock is ctrl for most developers I know (because it's by far the most used key in terminal/Vim/emacs/etc).
Re:2018 Mac Mini Review by copperx on Tuesday November 06, 2018 @04:53PM (#18395208)
Yes. Although in a Kinesis Advantage keyboard (the "official" Emacs keyboard), because the Control is under the thumb, it is useful to remap the CapsLock to Esc.
Re:2018 Mac Mini Review by dkonofalski on Tuesday November 06, 2018 @05:20PM (#18395428)
You should snag an app called BetterTouchTool. Makes the TouchBar an amazing addition to the laptop. It's just a shame that Apple didn't build in a tool like it but I hope the developer gets lots of love.
Re:2018 Mac Mini Review by reaperducer on Tuesday November 06, 2018 @08:42PM (#18396523)
I have BTT for my machine at home, but the IT security department won't approve it for the work machines.
Re:2018 Mac Mini Review by xvector on Tuesday November 06, 2018 @07:32PM (#18396201)
Doesn’t BTT require enabling unsigned kernel extensions?
Re:2018 Mac Mini Review by tcfunk on Tuesday November 06, 2018 @05:25PM (#18395462)
Yes! I am constantly holding down the escape key without realizing it. Not a problem very often but occasionally causes some really confusing things to happen.
Re:2018 Mac Mini Review by artursapek on Tuesday November 06, 2018 @12:50PM (#18393228)
Doesn't it also get very distracting with how often it flashes into different states? I've heard this drives people crazy.
Re:2018 Mac Mini Review by copperx on Tuesday November 06, 2018 @04:54PM (#18395216)
When you remap it it doesn't flash at all.
Re:2018 Mac Mini Review by reaperducer on Tuesday November 06, 2018 @08:43PM (#18396530)
The touchbar? I find it more amusing than distracting.