3 ms·
And for editing that command line... I know a lot of people who know about Ctrl-a, Ctrl-e, Ctrl-k, but still hold down the left arrow key or delete key a lot to
by amiga386 2mo ago
And for editing that command line... I know a lot of people who know about Ctrl-a, Ctrl-e, Ctrl-k, but still hold down the left arrow key or delete key a lot to edit things in the middle.
Those people want to use:
Alt-f move cursor forward one word
Alt-b move cursor back one word
Alt-d delete to the end of the next word
Alt-Del delete backwards to the start of the previous word
Ctrl-_ undo
Here's a cheatsheet: https://readline.kablamo.org/emacs.html https://readline.kablamo.org/emacs.html
- FeepingCreature 2mo agoCtrl-arrowkeys also works for word cursor movement in regular bash, and alt-backspace deletes a word.
- Fnoord 2mo agoThose people are fine just using arrows and backspace, as it isn't worth it to min-max this. I don't want to learn/use Emacs, this doesn't even work on macOS, and Ctrl+A interferes with my tmux keybind. This is why vi keybinds are nice in shells, but... defaults matter. I haven't decided yet if I want to use NFS to malware my configs, or git. I think git is more flexible, but I don't want my configs in a public git. Either way, I use atuin a lot, and before that history | fzf. Which is bound to ctrl+r for me. But again... not by default.