|
From: Daniel J S. <dan...@ie...> - 2007-06-05 20:54:36
|
Juergen Wieferink wrote: >>>Would this even allow an implementation of the C-o sequence in >>>bash (enter line + go to next history item)? This command >>>sequence is really nice because it saves you from counting >>>up-arrows. This would be *too* nice! >> >>You'll have to explain a bit more. Is this command-line >>completion you are talking about? > > > No. I'm talking about the emacs-like key bindings the bash > provides. > > Examples of key bindings also in gnuplots readline: > C-p: previous history line > C-n: next history line > C-r: incremental backward search in history > > C-o is missing in gnuplot. First, it executes the current line. If > this is the line n in the history, line n+1 is loaded into the next > command line. Thus, you can search a distinct line using (for > example) C-r <significant substring> and then execute the following > lines in the history using subsequent C-o. Once used to it, this a > very convenient feature of the bash and it would be valuable to have > it in gnuplot, too. The C-p, C-n, C-r appear to be standard GNU readline, not C-o. Perhaps you need to setup this binding in an inputrc file? http://tiswww.case.edu/php/chet/readline/readline.html#SEC9 I'm still not sure what type of command this is. Is there are listing of sorts in the above readline documentation of command types? If so, does something match what you are speaking of? Dan |