News for hackers. Stuff that matters.
Re:MacBook Pro by avitzurel on Thursday October 27, 2016 @01:47PM (#12807365)
I can't get over the ESC key.

I need to experience it in order to make a final decision but even though it's "there" the position looks awkward.

Re:MacBook Pro by jasonjei on Thursday October 27, 2016 @01:49PM (#12807402)
In typical Apple fashion, there's a dongle for that.

Sarcasm aside, I wonder how well this will work if you use Boot Camp. Does the TouchBar revert to a normal function bar when OS isn't in control of it? Let's say I don't use VMware, and I want to boot into Linux or Windows, what happens to the TouchBar? Installing Linux or non-OS X operating system could be made more difficult without function keys. And yes, VIM and other modal editors are going to be less fun with the loss of tactile ESC.

I'm hoping the TouchBar will have some failsafe firmware mode that allows normal use of Func keys when OS doesn't have control over it.

The worst possible case in my mind is buying a small, tiny external keyboard (dongle) with just the Func keys if Boot Camp doesn't have a good solution.

Re:MacBook Pro by lostgame on Thursday October 27, 2016 @02:01PM (#12807579)
Not sure why this is downvoted. It's one of the more serious technical concerns I've seen here.
Re:MacBook Pro by bitL on Thursday October 27, 2016 @02:22PM (#12807807)
Imagine you'd be able to buy a dongle with adhesive strip at the bottom in the shape of the touch bar. I am sure Shenzhen is already working on that.
Re:MacBook Pro by pault on Thursday October 27, 2016 @02:50PM (#12808267)
You can use ctrl-[ instead of esc in vim.
Re:MacBook Pro by Matthias247 on Thursday October 27, 2016 @03:52PM (#12809171)
On a german keyboard layout that's somewhere between hardly typeable (requires 3 keys) on Mac and impossible on other OSes (Ctrl+AltGr == AltGr == No Ctrl)
Re:MacBook Pro by metafunctor on Thursday October 27, 2016 @04:32PM (#12809713)
From what I've understood, on a German keyboard you type Control + Ü for ESC, instead of some three-key combo.
Re:MacBook Pro by Matthias247 on Thursday October 27, 2016 @04:40PM (#12809825)
Just tested it on my Mac. It's Ctrl + Ä. So this works. However haven't tested yet of what windows/mingw does with this.
Re:MacBook Pro by Matthias247 on Friday October 28, 2016 @04:14AM (#12813959)
If anybody is interested: In Windows it works with Ctrl + Ü.
Re:MacBook Pro by lambda on Thursday October 27, 2016 @01:55PM (#12807486)
On my laptop, I already use Karabiner to make Caps Lock function as Control if used as a modifier key, and ESC if just tapped. Much easier to reach, works for both Emacs and Vim keybindings, only issue is that sometimes you hit ESC by accident if you start doing a chord but then decide against it. I personally think this is a better solution than a soft key for escape, but it may not be to everyone's taste.
Re:MacBook Pro by FordPrefectAO on Thursday October 27, 2016 @02:17PM (#12807759)
I think they broke Karabiner support in the new macOS
Re:MacBook Pro by lambda on Thursday October 27, 2016 @02:30PM (#12807913)
Ah, that's disappointing. Another reason to be glad I haven't upgraded yet, I guess.

Also, wow, I'm glad I don't maintain any popular open source projects on GitHub: https://github.com/tekezo/Karabiner/issues/660. I can't believe the number of people who think "+1", "me too", and "donated" messages are at all helpful.

Also, looks like Karabiner Elements exists as a rewrite for Sierra. https://github.com/tekezo/Karabiner-Elements Haven't yet checked if it supports the same dual behavior, though.

Re:MacBook Pro by comex on Thursday October 27, 2016 @02:35PM (#12807990)
It's being worked on, but the latest macOS also adds Caps Lock to Escape mapping as a builtin preference.
Re:MacBook Pro by lambda on Thursday October 27, 2016 @02:46PM (#12808186)
I'm an Emacs user though, so I like it being Control as a modifier/Escape if pressed alone. Just having Caps Lock function as escape wouldn't help.
Re:MacBook Pro by mcescalante on Thursday October 27, 2016 @01:48PM (#12807392)
The entire function row still exists including the Escape Key. The Touch Bar is customizable, and I would imagine we will see a "global ESC" application pretty quick.
Re:MacBook Pro by dgritsko on Thursday October 27, 2016 @01:54PM (#12807478)
The fact that the function keys aren't "customizable" is a feature, not a bug. The contextualization being touted as a selling point of the Touch Bar means that instead of relying on muscle memory to push a key that is always going to be in the same place, I will now have to look away from the screen to make sure I'm doing the right thing.
Re:MacBook Pro by ubernostrum on Thursday October 27, 2016 @03:13PM (#12808652)
Do you frequently use applications which, on the fly, change what their keyboard shortcuts are? Like, copy is Cmd+C right now, but five minutes from now, in the same application, it will suddenly be Option-P instead? And Fn-Q ten minutes after that?

If not, why do you assume that an application won't consistently present its contextual touch buttons in the same locations each time it presents them? Because the only case in which you couldn't develop muscle memory for those buttons is one in which they are not in the same location each time the application presents them.

(and if your retort will be that you use different applications which will make different choices for their contextual buttons, well, they probably already used different keyboard shortcuts for application-specific tasks, and you developed muscle memory for those, so...)

Re:MacBook Pro by jonknee on Thursday October 27, 2016 @01:50PM (#12807417)
Though oddly not properly aligned. It's about 2/3 of the way off the ~ key for some reason.
Re:MacBook Pro by avitzurel on Thursday October 27, 2016 @01:51PM (#12807435)
It's because they wanted to keep the same distance from the touchid on the right side. So in order to keep it nicely aligned they put it there (only assuming here).
Re:MacBook Pro by ihuman on Thursday October 27, 2016 @01:51PM (#12807436)
Wouldn't that make it easier to hit with your finger? You'd have to stretch less.
Re:MacBook Pro by jonknee on Thursday October 27, 2016 @01:52PM (#12807444)
Not if you have dozens of years of muscle memory for it being all the way to the top left. And since it's not a button you can't go by feel.
Re:MacBook Pro by wlesieutre on Thursday October 27, 2016 @02:00PM (#12807564)
I would guess the margin on the left is still in the touch area for esc. If you've used the split keyboard on an iPad, they went as far as to include invisible key duplicates for the keys at the edges. The ones on the border are actually usable on either the left or right half.
Re:MacBook Pro by hbosch on Thursday October 27, 2016 @01:53PM (#12807465)
Perhaps there is a business opportunity here, selling $9.99 USB-C Esc key dongles?
Re:MacBook Pro by pmontra on Thursday October 27, 2016 @01:58PM (#12807540)
An app to display it in vim would be enough. But add another $9.99 app for the delete (forward) key, after all those years (it's fn backspace now). An example of market creation by the removal of features.

Even my Samsung tablet has a default keyboard with both backspace and delete.

Re:MacBook Pro by agumonkey on Thursday October 27, 2016 @01:54PM (#12807482)
Clearly we need a USB-ESC standard.
Re:MacBook Pro by drivingmenuts on Thursday October 27, 2016 @01:58PM (#12807544)
It needs to be a shiny, red, poundable button. Maybe something that makes a helluvva noise when you hit it.
Re:MacBook Pro by BooneJS on Thursday October 27, 2016 @01:48PM (#12807385)
Can't escape Apple's courage. ;)
Re:MacBook Pro by sfrailsdev on Thursday October 27, 2016 @01:50PM (#12807427)
You can remap the capslock key to escape. Or do what I do, have capslock be ctrl when combined with a non modifier key, and escape otherwise. I enter normal mode with my pinky.
Re:MacBook Pro by GrandTheftR on Thursday October 27, 2016 @02:11PM (#12807692)
> Or do what I do, have capslock be ctrl when combined with a non modifier key

Re-read your comment, how do you do this at OS level? I can imagine doing this in Vim or Tmux, but OS level for any application?

Re:MacBook Pro by sfrailsdev on Friday October 28, 2016 @06:58PM (#12821483)
Re:MacBook Pro by udfalkso on Thursday October 27, 2016 @02:30PM (#12807922)
The latest version 10.12.1 of mac os gives you this option. In modifier keys in keyboard preferences.
Re:MacBook Pro by GrandTheftR on Thursday October 27, 2016 @01:51PM (#12807442)
Not sure for how many people, mine is already remapped to Ctrl key
Re:MacBook Pro by avitzurel on Thursday October 27, 2016 @01:53PM (#12807466)
Same here. Caps is CTRL. so in tmux CTRL+a is right next to each other.

b.t.w on Happy Hacking keyboard that button is CONTROL by default.

Re:MacBook Pro by ctocoder on Thursday October 27, 2016 @01:48PM (#12807389)
Looks like you can program the touchbar to have an esc key.
Re:MacBook Pro by falcolas on Thursday October 27, 2016 @01:59PM (#12807551)
I keep watching it vanish, though, as other contextual menus overwrite it. Even the terminal "bar" has a contextual menu that will hide it.
Re:MacBook Pro by avitzurel on Thursday October 27, 2016 @01:50PM (#12807419)
Saw that, but the position is really weird. So weird that I am not sure muscle memory will adapt.

Since I use a real keyboard 85% of the time, the 15% I use on the mac is bound to be painful.