From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26528 invoked from network); 26 Jul 2003 21:17:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Jul 2003 21:17:24 -0000 Received: (qmail 15387 invoked by alias); 26 Jul 2003 21:17:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6416 Received: (qmail 15376 invoked from network); 26 Jul 2003 21:17:07 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 26 Jul 2003 21:17:07 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [195.92.195.172] by sunsite.dk (MessageWall 1.0.8) with SMTP; 26 Jul 2003 21:17:6 -0000 Received: from modem-132.foxface.dialup.pol.co.uk ([62.137.15.132] helo=pwstephenson.fsnet.co.uk) by cmailg2.svr.pol.co.uk with esmtp (Exim 4.14) id 19gWPZ-0003Tr-Cx; Sat, 26 Jul 2003 22:17:05 +0100 Received: by pwstephenson.fsnet.co.uk (Postfix, from userid 501) id 6AEBC84E0; Sat, 26 Jul 2003 17:18:54 -0400 (EDT) Received: from pwstephenson.fsnet.co.uk (localhost [127.0.0.1]) by pwstephenson.fsnet.co.uk (Postfix) with ESMTP id 395BD84C8; Sat, 26 Jul 2003 22:18:54 +0100 (BST) To: Skye Poier Cc: zsh-users@sunsite.dk Subject: Re: moving to end of line In-reply-to: "Skye Poier"'s message of "Fri, 25 Jul 2003 14:10:24 PDT." <20030725211024.GG23355@isilon.com> Date: Sat, 26 Jul 2003 22:18:52 +0100 From: Peter Stephenson Message-Id: <20030726211854.6AEBC84E0@pwstephenson.fsnet.co.uk> Skye Poier wrote: > Hi everyone, I'm a recent tcsh convert, and loving it :) > Got everything just the way I like it, except one minor niggling detail. > > When I scroll up and down through history with: > > bindkey "^[[A" history-beginning-search-backward > bindkey "^[[B" history-beginning-search-forward > > It would be really nice to have the cursor moved to the END of the line, > because 99% of the time I just need to change a bit of text on the end > of the command. Is there a way to do that? autoload -U history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end bindkey '\e[A' history-beginning-search-backward-end bindkey '\e[B' history-beginning-search-forward-end -- Peter Stephenson Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk