Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi-history-incremental-search?
- X-seq: zsh-users 5318
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Steve Talley <stephen.talley@xxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: vi-history-incremental-search?
- Date: Fri, 30 Aug 2002 03:26:19 +0000
- In-reply-to: <20020829204918.GE9260@.central.sun.com>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020829204918.GE9260@.central.sun.com>
On Aug 29, 2:49pm, Steve Talley wrote:
}
} Is there any way to modify either vi-history-search-* or
} history-incremental-search-* to come up with a hybrid
} vi-history-incremental-search*?
Unfortunately, without rewriting some C code, it's very difficult.
Even in emacs mode you can't exit from incremental search and then resume
the same search again later.
You can tell the search what string to begin searching for, by calling
(in a widget function) e.g.
zle history-incremental-search-backward foo
but there's no way at the end of a search to capture and save the string
that was last searched for, so the ability to set the starting string
doesn't help much.
You *could* implement your own incremental search, modeled after the
input loop in the incremental-complete-word function that's in the
distribution, but that would get pretty hairy.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author