bug-readline
[Top][All Lists]
Advanced

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

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


From: Chet Ramey
Subject: Re: [Bug-readline] rluserman: questions to non-incremental history commands
Date: Tue, 15 Apr 2014 16:05:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 4/12/14, 3:27 PM, Дилян Палаузов wrote:

> 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.

In general, if the description does not specify, the search is for a string
appearing anywhere in a history entry.

> 
> Likewise for non-incremental-reverse-search-history,

The same.

> history-search-backward and history-substr-search-backward.

The `substr' in the name of the latter should infer something about the
difference between the two, but the descriptions in the readline manual
already describe whether the search must match at the beginning of a
history line.

> 
> 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"?

A non-incremental reverse search for `ab'?  Since non-incremental searches
require you to specify the search string before you search, you will have
to cancel or end the current search and start a new one.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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