From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21698 invoked from network); 21 Feb 2004 22:57:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Feb 2004 22:57:40 -0000 Received: (qmail 11664 invoked by alias); 21 Feb 2004 22:57:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7080 Received: (qmail 11632 invoked from network); 21 Feb 2004 22:57:24 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 21 Feb 2004 22:57:24 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [207.71.22.205] by sunsite.dk (MessageWall 1.0.8) with SMTP; 21 Feb 2004 22:57:23 -0000 Received: from elm.teratorn.org (unknown [10.0.0.23]) by oak.teratorn.org (Postfix) with ESMTP id 003942DE; Sat, 21 Feb 2004 17:26:05 -0600 (CST) To: Thorsten Kampe , zsh-users@sunsite.dk Subject: Re: incremental history search References: <1lk8q9de9jvbv.dlg@thorstenkampe.de> <1epb3ga9oumiw$.dlg@thorstenkampe.de> <20040221143934.GB16036@teapot.iano-fletcher.org> Message-ID: From: Eric Mangold Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sat, 21 Feb 2004 16:56:56 -0700 In-Reply-To: User-Agent: Opera7.23/Linux M2 build 518 On Sat, 21 Feb 2004 16:50:48 +0100, Thorsten Kampe wrote: > * Anthony Iano-Fletcher (2004-02-21 15:39 +0100) >> history-beginning-search-backward and history-beginning-search-forward >> were designed to repeatedly match whatever was to the left of the cursor >> with one's history. The cursor shouldn't move or else a repeated match >> would not be looking for the original prefix. > > I know that, thanks. I was referring to the *special case where I > haven't typed anything and the command line is empty* and there is > *nothing to search for*. If I just want to move up or down sequentially I use C-p and C-n. I guess you need emacs bindings on for this (bindkey -me). These commands do position the cursor at the end of the line. > In this case "up-line-or-search" does simply > a "up-line" and moves the cursor to the end of any recalled command > line from history. "history-beginning-search-backward" does a > "up-line", too, in this case, but leaves the cursor where it was (at > the beginning of each recalled command line from history). > > Both approaches are useful in certain cases but in my opinion the > dynamic movement to the end of the line is more useful because I > manipulate the end of commands more often than the beginning. > > Thorsten >