Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: widget called when zle starts.



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