News for hackers. Stuff that matters.
Re:Keyboard tricks from a macOS app dev by dan-robertson on Sunday April 23, 2023 @06:03PM (#35681124)
Lots of those shortcuts are basically Emacs shortcuts. I’m always sad using gdocs on Linux that they don’t support the Emacs shortcuts.
Re:Keyboard tricks from a macOS app dev by colechristensen on Sunday April 23, 2023 @06:30PM (#35681331)
Not just Emacs, but anything that uses readline or similar libraries. Most shells for example.

https://en.wikipedia.org/wiki/GNU_Readline

https://github.com/chzyer/readline/blob/master/doc/shortcut....

Re:Keyboard tricks from a macOS app dev by dan-robertson on Monday April 24, 2023 @06:05AM (#35685592)
I mean, readline shortcuts are also based on Emacs ones.
Re:Keyboard tricks from a macOS app dev by ornornor on Monday April 24, 2023 @06:13AM (#35685633)
Always assumed it was the other way around without any particular evidence.
Re:Keyboard tricks from a macOS app dev by aaronbrethorst on Sunday April 23, 2023 @07:56PM (#35682003)
Yep. Yank and Kill work too, among others
Re:Keyboard tricks from a macOS app dev by interpol_p on Sunday April 23, 2023 @09:34PM (#35682708)
Side note that these Emacs shortcuts also work on iOS pretty much everywhere (you even get it for free in completely custom text renderers, so long as you adopt the UITextInput protocol)
Re:Keyboard tricks from a macOS app dev by ngai_aku on Sunday April 23, 2023 @11:03PM (#35683222)
How are you using the modifier keys in iOS?
Re:Keyboard tricks from a macOS app dev by crazygringo on Monday April 24, 2023 @12:58AM (#35683821)
Just connect a Bluetooth keyboard.

Sometimes I use an iPad plus Bluetooth keyboard for writing.

What's annoying is that keyboard shortcuts mostly work in apps, but are sometimes buggy, because I think they're so rarely tested.