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.

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

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to