News for hackers. Stuff that matters.
Re:Keyboard tricks from a macOS app dev by drbaba on Monday April 24, 2023 @12:27AM (#35683650)
The defaults can be changed (DefaultKeyBindings.dict). However, those keybindings are not just “yet another set of bad old combos”; the same keybindings are used by default in Emacs on any platform, and by most POSIX shells and interpreters (Bash, Zsh, Fish, IPython, etc.). On Mac, they’re inherited by most other GUI text editors (e.g. Sublime).
Re:Keyboard tricks from a macOS app dev by jurip on Monday April 24, 2023 @01:49AM (#35684090)
Yeah. Those are the key combos for editing text, especially on a Mac. If an app does not support them, it's going to be some weird cross platform monstrosity and you're better off if you find a competitor.
Re:Keyboard tricks from a macOS app dev by eviks on Monday April 24, 2023 @03:42AM (#35684738)
These are exactly another set of bad old combos, and the fact that their use is widespread is just another example of how bad very common things are:

  -  it doesn't make sense to have a/e as beginning/end, there is a symmetry in the commands, but there is no symmetry in the a/e keybindings, they are on different rows

  - likewise, it doesn't make sense to use the less convenient ⌃ for such a frequent command (and this is also the rightful criticism of all the bad Emacs pinky defaults)
For example, you could use right ⌘ (a thumb key) as your text movement key (or even Space), then you have home keys

  - JKL; for cursor movements and

  - DF for your word movements (instead of having to move your whole hand to ⌥◀/▶)

  - A/⇧A for line start/end movements or maybe A/G if it's frequent enough to not warrant using ⇧
And then that would match your text editor keybinds, so you don't have to waste time remembering platform-specific keys.

And re. those other apps - it's better to rebind them all (or, rather, use a tool to have the keybinds work in all of them) as well to use something good rather that stick with the bad just because someone lacked good design chops in the past

Re:Keyboard tricks from a macOS app dev by ogsuspect on Monday April 24, 2023 @05:20PM (#35693428)
Thats because they come from GNU Readline
Re:Keyboard tricks from a macOS app dev by drbaba on Tuesday April 25, 2023 @01:48AM (#35696929)
I agree, Readline is the reason they got so widespread. But note that except Bash, none of the shells and interpreters I listed actually use GNU Readline these days — and that Emacs and its keybindings predates Readline.