More useful key combinations
Hosted by Dave Morriss on 2018-03-09 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg,
mp3 format. | Comments (3)
The power of GNU Readline - part 3
In part 2 we looked at deleting text in various ways and pasting it back, using GNU Readline key sequences.
The full-length notes (available here) contain some new terms and features of GNU Readline, and introduce some further ways of manipulating text, with some examples.
Comment #1 posted on 2018-03-09T20:49:24Z by Jan
Some Lines Of Support
Thanks a lot for Your effort.
If a machine is under heavy load and therefor kind of not responsive anymore that readline-magic comes in handy. Same goes for a slow link between a users terminal and a remote machine.
Comment #2 posted on 2018-03-10T03:25:54Z by Clinton Roy
I was not aware of the comment/decomment commands, they might be useful.
Comment #3 posted on 2018-03-11T13:02:59Z by clacke
I went into this thinking "bah, readline, it's C-r, C-a, C-e, some kill and yank, what's to learn?". But it was Dave, and somehow there was a Part 3, so maybe there were something useful in there?
Wow, I was so wrong about knowing everything there is to know about readline. I don't know how useful the capitalization things are, and C-t I already knew about and I think it's mostly useful for when you have pressed C-t by mistake ... but M-b and M-f, OMG.
I have needed these for years. I usually hop around with C-left and C-right, but when you're one mosh, one tmux and one su down, usually all arrow keycodes are long gone, and it's all misery. Now with M-b and M-f my life quality will drastically improve!
Also interesting to know what the args thing is for. I've been vaguely aware of it as it's easy to trigger by mistake, but I think I will use it more now that I have been taught exactly what it does. Maybe for counting the length of git commit messages, for example. You want a 60-character max commit message length? M-6 0 C-b after you typed your message will show you by how much you overran the limit!
Thanks, Dave. As always a great contribution, even for those of us who may think we already know everything.
<< First, < Previous, Next >, Latest >>
Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.
Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).