zsh-users
 help / color / mirror / code / Atom feed
From: Goran Koruga <goran.koruga@hermes.si>
To: zsh-users@sunsite.auc.dk
Subject: Re: up-line-or-search question
Date: Wed, 27 Feb 2002 10:24:17 +0100	[thread overview]
Message-ID: <20020227092417.GB31084@isis.hermes.si> (raw)
In-Reply-To: <20020227091444.G22870@lifebits.de>

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@lifebits.de
> 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 


  reply	other threads:[~2002-02-27  9:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-27  8:14 Dominik Vogt
2002-02-27  9:24 ` Goran Koruga [this message]
2002-02-27 13:36 ` Dominik Vogt
     [not found]   ` <3C7CED18.mail4KQ11CK3F@viadomus.com>
2002-02-27 14:44     ` Dominik Vogt
2002-02-27 15:00       ` Anthony R Iano-Fletcher
2002-02-27 16:16         ` Bart Schaefer
2002-02-27 16:08   ` Oliver Kiddle
2002-02-28  6:41     ` Dominik Vogt
2002-02-28  7:52       ` Dominik Vogt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020227092417.GB31084@isis.hermes.si \
    --to=goran.koruga@hermes.si \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).