Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: changing bindings in isearch mode?
- X-seq: zsh-workers 26364
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: changing bindings in isearch mode?
- Date: Mon, 19 Jan 2009 09:44:53 +0000
- In-reply-to: <m3priln64m.fsf@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <18801.32959.693653.15539@xxxxxxxxxxxxxxxxxx> <20090117175659.1a37c70f@pws-pc> <m3priln64m.fsf@xxxxxxxxxxxxxx>
On Sat, 17 Jan 2009 13:23:53 -0500
Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:
>
> >>>>> 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?
Yes, it looks like you're right.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author