Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: moving to end of line
- X-seq: zsh-users 6416
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: Skye Poier <skye@xxxxxxxxxx>
- Subject: Re: moving to end of line
- Date: Sat, 26 Jul 2003 22:18:52 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: "Skye Poier"'s message of "Fri, 25 Jul 2003 14:10:24 PDT." <20030725211024.GG23355@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author