Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Add $ZLE_STATE in zle widgets
- X-seq: zsh-workers 28140
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: Add $ZLE_STATE in zle widgets
- Date: Wed, 11 Aug 2010 13:44:20 +0100
- In-reply-to: <20100811130250.31da4e84@xxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <20100803105823.1232a42b@xxxxxxx> <1280868200-11220-1-git-send-email-ft@xxxxxxxxxxxxxxxxxxx> <87vd7n8p7u.fsf@xxxxxxxxxxxxxxxxxxxxxx> <20100811130250.31da4e84@xxxxxxx>
On Wed, 11 Aug 2010 13:02:50 +0100
Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> > I'm pretty happy with my current setup anyway. It would be cool to
> > have a way to add a "V" mode to my prompt when `vared' is active.
> > That could probably be done with {pre,post}-vared hook widgets. I
> > didn't look into that yet, though. (Actually, since I wrote this
> > mail while being on a train, I did look at this by now. This is not
> > as trivial as I had hoped, since zle cannot be run recursively. Oh
> > well, I'm rarely using `vared' anyway.)
>
> Should be trivial to add this to ZLE_STATE internally.
Turns out you can already test [[ $CONTEXT = vared ]].
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author