zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: Skye Poier <skye@isilon.com>
Cc: zsh-users@sunsite.dk
Subject: Re: moving to end of line
Date: Sat, 26 Jul 2003 22:18:52 +0100	[thread overview]
Message-ID: <20030726211854.6AEBC84E0@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: "Skye Poier"'s message of "Fri, 25 Jul 2003 14:10:24 PDT." <20030725211024.GG23355@isilon.com>

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 <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


      parent reply	other threads:[~2003-07-26 21:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-25 21:10 Skye Poier
2003-07-25 21:43 ` Dan Nelson
2003-07-25 22:08   ` bindkey/termcap Skye Poier
2003-07-26 21:18 ` Peter Stephenson [this message]

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=20030726211854.6AEBC84E0@pwstephenson.fsnet.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=skye@isilon.com \
    --cc=zsh-users@sunsite.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).