3 ms·
Basic emacs keybindings work in most MacOS text boxes. CTRL-A goes to the beginning of the line, CTRL-E the end, CTRL-P prior line, CTRL-F forward, CTRL-B backw
by ams6110 9y ago
Basic emacs keybindings work in most MacOS text boxes. CTRL-A goes to the beginning of the line, CTRL-E the end, CTRL-P prior line, CTRL-F forward, CTRL-B backwards, CTRL-N next line. I think this was originally a NEXTSTEP thing.
- ycmbntrthrwaway 9y agohttp://unix-kb.cat-v.org/ http://unix-kb.cat-v.org/
- LukeShu 9y agoAs that page notes, C-a and C-e are not just Emacs bindings; and are even in Vi. However, the other bindings mentioned are Emacs bindings; and macOS textareas do support Emacs keybindings (on ctrl, not cmd), and that includes C-a and C-e. I believe the comment about NeXTSTEP was not that the keybindings originated there, but that NeXTSTEP implemented Emacs keybindings in textareas, and that macOS inherited that (I don't know about the accuracy of that though). Oh, and the page said "Rob Pike answers in 9fans: “I believe ^H ^W ^U date back at least to TENEX.”"; it seems odd to me that he didn't mention that 'H' with the control bit flipped is literally the ASCII "backspace" control character.
- dunham 9y agoYeah, the thing that irks me is when C-a and C-e don’t work. (Most things support it these days, but I’m afraid it’ll be less prevalent in the coming years as fewer people are familiar with emacs.)