Live data from Hacker News

React Native Touchbar

github.com

21–30 of 32 posts

Re: React Native Touchbar

#24
post #19

lol is anyone really gonna use vim with the touchbar's escape key? Reaching up there with a physical keyboard is bad enough that I always remap caps lock to emit escape on tap (and control on hold). I can't imagine any vim power user being attracted to this new touch bar thing. In fact this MBPro release was the tipping point for me switching away from using a Mac to using Linux on a Thinkpad (and I will never go bac…

I've used vim on and off for about 15 years now. I now use Emacs + evil or any other editor with vim key bindings. I've never remapped the ESC key. Do you all remap the key at the OS level or do you remap it in your .vimrc? Getting rid of caps lock is attractive enough that I'm willing to give it a try. I never knew it was a thing and that that many people remapped ESC. I'm also wondering what happens to the caps loc…

Sierra includes a built-in option to map any of the modifier keys to Escape. And if you use caps lock, the light does stay off.

Re: React Native Touchbar

#25
post #12

Earlier quoted context omitted.

I learned in a previous HN thread that the use of Esc originated with the ADM-3A [1] keyboard layout. It was next to Q where modern keyboards have the Tab key. In that context it makes sense to use, but yeah, Esc is not in a good place today. Just me, or is it pretty silly to have the "STAY ON THE HOME ROW!" HJKL cursor keys, and then be reaching way out with your pinky all the time? Had people been frequently remapp…

I don't think of it as "reaching way out" so much as "whacking the corner."

I have a similar experience with AutoCAD where "mash esc repeatedly" means "get out of whatever I was doing," and I do it all the time. But AutoCAD's UI isn't designed to keep your fingers on the home row; it's a weird half-and-half mix of CLI and GUI where your hands will have to move no matter what you do. The inconsistency of whacking the corner with what I know of the rest of vi(m)'s design is what I find weird.

But like I said, not a vim user, so I'm grasping at straws here.

Re: React Native Touchbar

#26
post #20
post #4

Earlier quoted context omitted.

I and most everybody I know use caps lock remapped to Escape. It gets rid of the annoying caps lock key, is easier to press, and solves the missing escape key problem!

I'm doing this, I hate the fallout of having caps lock on in vim and not knowing it.

No, swap caps lock and control, it's much more useful.

Actually, maybe not that useful on a mac, but still more useful than the esc key. I've remapped esc to jj in vim, and it works beautifully (I very rarely actually need to type jj, so it works well).

Re: React Native Touchbar

#27
post #14

Cool!. Does anybody know if there's a generic tool for using a smartphone in a similar way as the Mac TouchBar? I know there are some apps to create a virtual keyboards, but those are very limited.

Probably not what you're looking for, but there's a project to emulate the macOS Touch Bar on an iPad over here:

https://github.com/bikkelbroeders/TouchBarDemoApp

Re: React Native Touchbar

#28

lol is anyone really gonna use vim with the touchbar's escape key? Reaching up there with a physical keyboard is bad enough that I always remap caps lock to emit escape on tap (and control on hold). I can't imagine any vim power user being attracted to this new touch bar thing. In fact this MBPro release was the tipping point for me switching away from using a Mac to using Linux on a Thinkpad (and I will never go bac…

Some of us use ctrl-[ rather than escape, since you don't need to lift your hand. But a significant number of people still use ESC.

Ctrl-[ is escape, as far as the terminal is concerned at least

Re: React Native Touchbar

#29
post #24
post #19

Earlier quoted context omitted.

I've used vim on and off for about 15 years now. I now use Emacs + evil or any other editor with vim key bindings. I've never remapped the ESC key. Do you all remap the key at the OS level or do you remap it in your .vimrc? Getting rid of caps lock is attractive enough that I'm willing to give it a try. I never knew it was a thing and that that many people remapped ESC. I'm also wondering what happens to the caps loc…

Sierra includes a built-in option to map any of the modifier keys to Escape. And if you use caps lock, the light does stay off.

Caps lock on Mac has also some slight delay for the activation (to avoid being turned on by accident). I gues this is disabled on remap too?

Re: React Native Touchbar

#30
Wow, "Courage"... I guess we all have to deal with cognitive dissonance sometimes... Developers complaining about MBP, then diving into the touch bar APIs is basically the same as the old fable about the fox complaining the grapes are too sour, only to eat them afterwards.
Post reply on HN