Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: up-line-or-search question



Dominik does seem to be correct.

> >     With that keybindings you can. The history...search widgets
> > navigate just like up and down when the prompt is empty.
> 
> Nope.  I tried it, but it doesn't work.  When I hit Up/Down in a
> multi line command, a history search is performed.

I have
	"^N" history-beginning-search-forward
	"^P" history-beginning-search-backward
	"^[OA" up-line-or-history
	"^[OB" down-line-or-history
	"^[[A" up-line-or-history
	"^[[B" down-line-or-history

ie ^P and ^N bound to the history-begining-search-* versions and the
arrow keys on my keyboard bound to *-line-or-history.

When I'm in a multi-line command ^P does try to search back in the history
which is what Dominik is seeing.

This doesn't worry me because after using ^P to get the multiline command
I wanted I naturally swap to using the arrow keys to edit it.

I'm using zsh version 4.0.4.

Is there an easy way for Dominik to add this 'up/down-line'
functionallity using the widget stuff?


			Anthony.

-- 
Anthony R Iano-Fletcher        Anthony.Iano-Fletcher@xxxxxxx
                               http://cbel.cit.nih.gov/~arif
                               CBEL, CIT, NIH, Bethesda, MD, USA.
                               Phone: (+1) 301 402 1741.



Messages sorted by: Reverse Date, Date, Thread, Author