|
|
|
|
|
by axkdev
703 days ago
|
|
I'd like to point out that, for example, Ctrl+a is not specific to bash, it's a readline[0] keybinding. A subset of those will work in the text box in which I am typing this comment. C-f and C-b work, even C-h, but not C-w. Perhaps this key combo is reserved for closing the firefox tab on windows? Anyway, I love readline and wish it would work on literally all text inputs. 0. https://en.wikipedia.org/wiki/GNU_Readline |
|
- Readline is not used in every text field by default. Rather, e.g. MacOS and Readline independently offer a subset of the Emacs keybindings by default (Emacs predates Readline by many years, and I believe Ksh was the first shell to start adding some Emacs bindings to its CLI).
- Many modern CLI apps don’t use Readline, although many of them imitate the default Readline keybindings. Notably, Zsh, Fish, and IPython all use their own line editors that are clearly Readline-inspired but still different. (IPython used to use Readline, but dropped it 5-6 years ago.)
- As other commenters mention, Readline keybindings can be changed: You can switch to Vi keybindings if you want, or define your own in .inputrc. But note that those settings only affect apps that actually use Readline under the hood, so e.g. Zsh and IPython require different settings.