Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: widget called when zle starts.
- X-seq: zsh-workers 19288
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: widget called when zle starts.
- Date: Mon, 15 Dec 2003 18:50:26 +0000
- In-reply-to: "Bart Schaefer"'s message of "Mon, 15 Dec 2003 18:43:16 GMT." <1031215184316.ZM13274@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> I think this is almost a requirement. Otherwise one is reduced to doing
> things like this:
>
> precmd() { zle_use_cmd_mode=1 }
> zle-line-init() {
> ((zle_use_cmd_mode)) && zle vi-cmd-mode
> zle_use_cmd_mode=0
> }
I still haven't understood under what circumstances you'd be doing that.
Are you demanding that sometimes when zle is started up, such as
for a continuation line, you want to maintain the current keymap?
That's way beyond the original idea of an initialisation widget.
However, I think some sort of context is a good idea anyway.
Unfortunately zle is not the most object-oriented piece of code, but it
shouldn't be too hard.
--
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