|
From: | Ian Kelling |
Subject: | Re: [Bug-readline] Not a bug but a wish |
Date: | Thu, 28 May 2009 11:43:35 -0700 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090319) |
Chet Ramey wrote:
I'm not sure who wrote the "answer" above, but he didn't look very hard. Readline already supports such a feature, and binds some common arrow key sequences to the next-history and previous-history commands. If your arrow keys produce different key sequences, you can certainly bind them yourself in your inputrc file. Chet
This list throws me off, when I hit reply I expect it to go to the list, instead it goes to the author of the last message. Sorry for the double message Chet, I've added a sentence at the end.
I think you misunderstood him. I think the command he is looking for is operate-and-get-next (C-o) Accept the current line for execution and fetch the next line relative to the current line from the history for editing. Any argument is ignored. However, this is listed in man bash, not in man readline. It is in the bash interface to readline. If they want it right away, they can implement the same function in their own readline interface, the function doesn't look that complicated. It is operate_and_get_next in bashline.cI do think it would be a good idea to put this into readline itself. Chet, how do you see the prospect of operate-and-get-next being directly in readline?
- Ian Kelling
[Prev in Thread] | Current Thread | [Next in Thread] |