Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: up-line-or-search question



> Goran Koruga wrote:
> On Wed, Feb 27 2002, Dominik Vogt wrote:
> 
> > When I use the up-line-or-search function to complete a partially
> > typed command, the matching history lines are only matched to the
> > first word.  Is is possible to match by comparing to everything I
> > have typed?  Example:
> > > In the history:
> > > cd /foo
> > cd /bar
> > > When I type (up-line-or-search bound to the <Up> key):
> > > $ cd /f<Up>
> > > I get
> > > $ cd /bar
> > > But I want to get
> > > $ cd /foo
> 
> Yeah this was already discussed here :
> 
> bindkey "^[p" history-beginning-search-backward
> bindkey "^[P" history-beginning-search-backward
> bindkey "^[r" history-beginning-search-forward
> bindkey "^[R" history-beginning-search-forward
> 
> Bind it to whatever else you want.

Actually, that does not do what I want.  I'd need

  up-line-or-history-beginning-search-backward
  up-line-or-history-beginning-search-forward

Since I still want to be able to navigate through the lines in the
ZLE.

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: d.vogt@xxxxxxxxxxx
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20



Messages sorted by: Reverse Date, Date, Thread, Author