> C-e, C-f, M-b, M-f Why these strange shortcuts when any keyboard has arrow keys and they can be used with a control modifier to move by words? I can understand why to use C-a, C-e, because laptop keyboards tend to have "Home" and "End" keys in strange places, but those... And Emacs documentation for some reason insists on using C-e, C-f instead of arrow keys.
Not a eMacs person, but as a vim user arrow keys are annoying to reach. Using control or vim bindings it is far easier for me
Keyboard shortcuts for GNU Readline
61–70 of 174 posts
Re: Keyboard shortcuts for GNU Readline
#62Just enable vim mode (`set -o vi`) and call it a day.
Re: Keyboard shortcuts for GNU Readline
#63> C-e, C-f, M-b, M-f Why these strange shortcuts when any keyboard has arrow keys and they can be used with a control modifier to move by words? I can understand why to use C-a, C-e, because laptop keyboards tend to have "Home" and "End" keys in strange places, but those... And Emacs documentation for some reason insists on using C-e, C-f instead of arrow keys.
Who has time to move all of the way over to the arrow keys, tap a few times and then find the little tab on the J again? I have arrows behind a second layer on my keyboard with vim mapping, and I don't think I could give that up. If you spend all day in front of a keyboard you might as well learn to be efficient with it.
Same here: second layer reachable from the hands' home position on the keyboard. Left thumb for the modifier + ijkl in my case (I like ijkl for it mimics an actual arrows key cluster).
It works everywhere: xterm / command line, Emacs, any editor / IDE really, any dropdown menu...
It's the way.
Re: Keyboard shortcuts for GNU Readline
#64Re: Keyboard shortcuts for GNU Readline
#65Earlier quoted context omitted.
Command-A isn’t available on Linux in slack? How do people even function without basic function keys?
Let me introduce you to the Home key: https://en.wikipedia.org/wiki/Home_key
Re: Keyboard shortcuts for GNU Readline
#66Ahh yes. Freezing your terminal via control flow with Ctrl-s. It’s almost as bad as finding yourself trapped in vi with no obvious way to exit. But if I recall correctly, you can resume flow with Ctrl-q.
stty -ixon
in interactive shells and Ctrl-s ain't an issue anymore.If I do want to "pause" the output, teletype style, as if the seventies called or something, I pipe my command into less instead.
I've been disabling Ctrl+s since literally more than a decade and don't know what I'm missing. Probably not much.
Re: Keyboard shortcuts for GNU Readline
#67Just enable vim mode (`set -o vi`) and call it a day.
Re: Keyboard shortcuts for GNU Readline
#68How many people have been on a screen sharing call and watched the other person tediously up-arrow through 5-10 commands to try to rerun what they just did? The single greatest productivity boost you can gift a CLI newbie is searching their command history. Everyone jumps on the Emacs nav keys (C-f, C-b, etc) or other editing trivia. No one has trouble editing a command in place but it certainly takes some people way too long to run a command from one minute ago.
Also, purely selfishly, it's goddamned painful to watch the up-arrow dance and it wastes so much time. I want to scream.
Re: Keyboard shortcuts for GNU Readline
#69Ctrl-R! Ctrl-R! Ctrl-R! How many people have been on a screen sharing call and watched the other person tediously up-arrow through 5-10 commands to try to rerun what they just did? The single greatest productivity boost you can gift a CLI newbie is searching their command history. Everyone jumps on the Emacs nav keys (C-f, C-b, etc) or other editing trivia. No one has trouble editing a command in place but it certain…
Re: Keyboard shortcuts for GNU Readline
#70Earlier quoted context omitted.
Seems quite cool - I don't suppose you have a copy of the .dict file linked in that blog post? the link is 503 :\
There's a link in the comments to it. https://github.com/jrus/cocoa-text-system/blob/master/KeyBin... Though I just have: "^w" = "deleteWordBackward:"; /* C-W Delete word backward */