From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 651 invoked from network); 25 Jul 2003 21:58:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Jul 2003 21:58:37 -0000 Received: (qmail 5475 invoked by alias); 25 Jul 2003 21:58:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6411 Received: (qmail 2408 invoked from network); 25 Jul 2003 21:43:26 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Jul 2003 21:43:26 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [199.67.51.101] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Jul 2003 21:43:26 -0000 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6PLhCgM049536; Fri, 25 Jul 2003 16:43:12 -0500 (CDT) (envelope-from dan) Date: Fri, 25 Jul 2003 16:43:12 -0500 From: Dan Nelson To: Skye Poier Cc: zsh-users@sunsite.dk Subject: Re: moving to end of line Message-ID: <20030725214312.GG20823@dan.emsphone.com> References: <20030725211024.GG23355@isilon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030725211024.GG23355@isilon.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i In the last episode (Jul 25), Skye Poier said: > 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? I'll leave this question to a widget wizard. > I've "setopt ALWAYS_TO_END" but that's only for completion apparently. > > (by the way, it would be really nice to be able to specify termcap > entries with bindkey) I use this: # Usage: bindtc # If is unavailable, use bindtc () { local keyval=$(echotc "$1" 2>&-) [[ $keyval == "no" ]] && keyval="" bindkey "${keyval:-$2}" "$3" } -- Dan Nelson dnelson@allantgroup.com