Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: up-line-or-search question
- X-seq: zsh-users 4710
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: dominik.vogt@xxxxxx, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: up-line-or-search question
- Date: Wed, 27 Feb 2002 16:08:06 +0000 (GMT)
- In-reply-to: <20020227143627.F5514@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
--- Dominik Vogt <dominik.vogt@xxxxxx> wrote:
>
> Actually, that does not do what I want. I'd need
>
> up-line-or-history-beginning-search-backward
> up-line-or-history-beginning-search-forward
>
> Since I still want to be able to navigate through the lines in the
> ZLE.
Is this closer to what you want:
up-line-or-beginning-search-backward() {
if [[ $LBUFFER == *$'\n'* ]]; then
zle up-line-or-history
else
zle history-beginning-search-backward
fi
}
zle -N up-line-or-beginning-search-backward
If it is, this was discussed some time around about last November. A
few variations on the idea were posted including a similar function for
forward.
Oliver
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author