Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh, vi mode, vihistorysearchbackward
- X-seq: zsh-workers 1370
- From: Richard Coleman <coleman@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: zsh, vi mode, vihistorysearchbackward
- Date: Wed, 19 Jun 1996 18:47:12 -0400
- In-reply-to: Your message of "Wed, 19 Jun 1996 18:04:50 BST." <27400.199606191704@xxxxxxxxxxxxxxxxxxxxxxx>
> >I can see how "/" should seem to be "search forward" and "?" should be
> >"search backward", but this works exactly opposite as it did before.
>
> We are trying to emulate vi, rather than ksh. As a vi user, I find the
> new bindings much more intuitive -- ? is a backward search, so that's
> what I use to search backward through the history.
>
>
> >I've used a couple bindkeys in my own .zshrc to switch the two
> >functions (putting "backwards" back on "/"), but I'm pushing others
> >here to switch from ksh to zsh, and I think the default behavior
> >will confuse them (since the default bindings work exactly opposite
> >as ksh in vi mode). Anybody (dis)agree with switching them back?
>
I think the interpretation should be that "/" searches the `natural'
direction (whatever that is) and "?" searches the reverse of that.
With that interpretation, the previous behavoir is more natural. As
Bart said, you rarely ever want to search forward (down) the history.
The `natural' direction is always to search up the history.
rc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author