Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Question about _history-complete-older
On 2012-01-27 08:51, Bart Schaefer wrote:
> On Jan 26, 8:10pm, Bernhard Tittelbach wrote:
> }
> } In my zsh version 4.3.11, _history-complete-newer completes a word from
> } the history, beginning with the oldest words in the history,
> } while _history-complete-older completes a word from history starting
> } with the most recent entries.
>
> That's because they wrap around if they don't find anything. So if
> you do "newer" starting from the end, it will immediately find nothing
> and then wrap to the beginning and start from there; similarly "older"
> from the end (most recent) will work backward from there.
>
> Thus "newer" and "older" are relative to the entry on which you start
> searching, not relative to each other; they refer to the direction of
> the search, not to the recency of the entries they find.
Thanks for clarifying :)
regards,
Bernhard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author