From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20627 invoked from network); 27 Feb 2002 13:53:54 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Feb 2002 13:53:54 -0000 Received: (qmail 28169 invoked by alias); 27 Feb 2002 13:53:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4706 Received: (qmail 28156 invoked from network); 27 Feb 2002 13:53:42 -0000 X-Authentication-Warning: erdbeere.lifebits.local: luthien set sender to d.vogt@lifebits.de using -f Date: Wed, 27 Feb 2002 14:36:27 +0100 From: Dominik Vogt To: zsh-users@sunsite.auc.dk Subject: Re: up-line-or-search question Message-ID: <20020227143627.F5514@lifebits.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@sunsite.auc.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <20020227091444.G22870@lifebits.de> X-Virus-Scanned: by AMaViS perl-11 X-Sender: 520008918237-0001@t-dialin.net > 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 key): > > > $ cd /f > > > 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@lifebits.de LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20