Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: up-line-or-search question
- X-seq: zsh-users 4706
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: up-line-or-search question
- Date: Wed, 27 Feb 2002 14:36:27 +0100
- In-reply-to: <20020227091444.G22870@xxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: dominik.vogt@xxxxxx
> 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