3 ms·
Most of those keyboard shortcuts are worth learning; there are more, though, and the article leaves out why they are the way they are and that they're available
by mickeyp 3y ago
Most of those keyboard shortcuts are worth learning; there are more, though, and the article leaves out why they are the way they are and that they're available anywhere GNU readline is used.
Here's a more detailed article I wrote about them a while back:
https://www.masteringemacs.org/article/keyboard-shortcuts-every-command-line-hacker-should-know-about-gnu-readline https://www.masteringemacs.org/article/keyboard-shortcuts-ev...
For instance, did you know that you can record keyboard macros and play them back? It's a GNU readline feature.
- Lio 3y agoGNU readline defaults to emacs mode (the scheme described in the article) but there's also a vi mode which can be enabled with: set -o vi If you're already familiar with Vi, Vim or NeoVim then it's a really comfortable way to work.
- abdusco 3y agoWhat I often miss is a hotkey to jump prev/next argument. The closest I could find is jumping by words, but it's not the same.
- _TwoFinger 3y agoI think M-C-f and M-C-b do that.