Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: changing bindings in isearch mode?
- X-seq: zsh-workers 26348
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: changing bindings in isearch mode?
- Date: Sat, 17 Jan 2009 13:23:53 -0500
- In-reply-to: <20090117175659.1a37c70f@pws-pc> (Peter Stephenson's message of "Sat, 17 Jan 2009 17:56:59 +0000")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <18801.32959.693653.15539@xxxxxxxxxxxxxxxxxx> <20090117175659.1a37c70f@pws-pc>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> writes:
> Absolutely, but it's a very tricky change to push the behaviour into
> functions. Translation: it's not clear anyone knows how to do this and
> it's very clear no one has the time to find out.
I don't think you need (or even want) to push the behavior into
functions; the menu-select widget already uses the "menuselect"
keymap. It looks like it's just casing on the commands that are
bound, not executing them necessarily, and this seems to also be how
the isearch code is written, using tests of the form
cmd == Th(z_****)
Just glancing over the code, it would appear not too hard to create a
keymap for isearch, add an isearch-exit widget, and add a case for it
in doisearch. Does that seem like a reasonable solution?
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author