Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zshzle: aborting history search
- X-seq: zsh-users 7771
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zshzle: aborting history search
- Date: Mon, 26 Jul 2004 10:36:09 +0100
- In-reply-to: "Felix Rosencrantz"'s message of "Sat, 17 Jul 2004 12:43:19 PDT." <20040717194319.66145.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Felix Rosencrantz wrote:
> One thing you might look at is the LASTSEARCH zle parameter.
>
> I think there is some funkiness with the incremental search widgets like
> history-incremental-search-backward widget that you might have to be careful
> about. I had an opposite request, take text I typed on the command line and
> make it go into the search buffer. Bart provided a very helpful solution in
> a
> thread around zsh-users/3991 (http://www.zsh.org/mla/users/2001/msg00401.html
> ).
I reread that... the internal function doisearch() is crying out to
use a special keymap and a recursive edit. Currently the behaviour is
hardcoded onto certain widgets, which is why trying to get it to do
something unusual is difficult.
Possibly, doing it that way, you could get a better version of
history-incremental-search-backward as a shell function than the current
internal one. However, there may be things that aren't so easy.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author