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

Re: up-line-or-search question



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.

Goran

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

Cheers,
Goran

--

Writing about music is like dancing about architecture.
    -- Frank Zappa 



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