bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] rluserman: questions to non-incremental history commands


From: Дилян Палаузов
Subject: [Bug-readline] rluserman: questions to non-incremental history commands
Date: Sat, 12 Apr 2014 21:27:55 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Hello,

rluserman.texi, node Bindable Readline Commands > Commands for History says:

`history-search-forward ()'
     Search forward through the history for the string of characters
     between the start of the current line and the point.  The search
     string must match at the beginning of a history line.  This is a
     non-incremental search.  By default, this command is unbound.

`history-substr-search-forward ()'
     Search forward through the history for the string of characters
     between the start of the current line and the point.  The search
     string may match anywhere in a history line.  This is a
     non-incremental search.  By default, this command is unbound.

So, the difference between history-search-forward and history-substr-search-forward is that the first searches for a pattern in the beginning of a string, while the latter searches for a pattern anywhere in the string. Then we have:

`non-incremental-forward-search-history (M-n)'
     Search forward starting at the current line and moving `down'
     through the the history as necessary using a non-incremental search
     for a string supplied by the user.


Please clarify, if this command searches for history events starting with the provided string, or containing it in the middle of the event.

Likewise for non-incremental-reverse-search-history, history-search-backward and history-substr-search-backward.

If my history has the four events
a
ab
abc
abcd

and I search with non-incremental-reverse-search-history for "a", I find abcd, however I want to jump iteratively to "ab". What shall do, so that readline-history finds the intermediate "abc" and then the searched "ab"?

Thanks in advance for your answer.

Със здраве
  Дилян



reply via email to

[Prev in Thread] Current Thread [Next in Thread]