Live data from Hacker News

Keyboard tricks from a macOS app dev

notes.alinpanaitiu.com

151–153 of 153 posts

Re: Keyboard tricks from a macOS app dev

#151
post #149

Earlier quoted context omitted.

I'm not dead set, that's why I wouldn't waste time on writing a "this can take a little while to complete, because quite a large number of round trips are required to the source application, to get the information" in another bad language when it's much simpler to use Karabiner to send the offending keybind By the way, what would I do with this menu info, is there another function to permanently rebind a given menu i…

you can write a hammerspoon script that will intercept some hotkey you want to use for that menu item and select it yes.

I don't get it, this is much worse vs a direct rebind, which is instant

Also, this brings confusion between the key shown in the menu and the key that is used to activate it, is the Mac ecosystem powerful enough to fix this little usability snag?

Re: Keyboard tricks from a macOS app dev

#152

I guess this is only of tangential relevance to the post, but Ctrl+n (which should work the same as arrow down) has been broken in Spotlight as of macOS Ventura. The fact that this completely standard binding has been broken in a crucial macOS app for 5 months basically tells me that Apple does not care about the "Emacs-style" shortcuts in macOS.

It stopped working in safari too (for picking items from the dropdown of suggestions when you type into the address bar). Even if you edit `DefaultKeybinding.dict`, some of the bindings just don't take. Also broken in some places is 'alt-b' and 'alt-f' for forward and backward word movement. I've been remedying this with BetterTouchTool, but it isn't the same in some places.

Re: Keyboard tricks from a macOS app dev

#153
post #147

Earlier quoted context omitted.

>What's your Automator handler that I can select a dynamic menu item and change those two keybinds with my arbitrary key combo? no clue, I don't use automator, but from what I understand of applescript and automator this should be completely possible. For what it's worth I use Hammerspoon like the other commentor and it's by far the best system I've seen for any OS. Also the more people that use it the better it gets…

I've already tried Hammerspoon a while ago > any arbitrary menu item in any program that exists That's false > I don't really know how you would make it make it any more user friendly. Just read my comment, it tells you exactly how to make it user friendly. And it's easy to come up with a few more ideas

> That's false

In what way?

> Just read my comment, it tells you exactly how to make it user friendly.

I’ve reread all of your comments in this thread and find no such thing.

Post reply on HN