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

Re: Trial patch for showing completion in progress



Bart Schaefer wrote:
> How about this?
> 
>     zstyle () {
>         [[ $3 = matcher-list ]] && {
>             zle -R "Trying completion for $2"
>             sleep 1
>         }
>         builtin zstyle "$@"
>     }

Nasty but interesting.  The `sleep 1' misses the point, however, which
is that you see what it's doing in real time.  If it's fast enough that
the message doesn't appear, you don't care.

> > Is there a way of removing the zle -M output if the completion produced
> > no output?
> 
> Using zle -R instead of -M takes care of that.  Is there some other bad
> side-effect of -R?

That would be fine.  I was thinking it shouldn't be connected with a
redisplay, but of course it has to be in any case.

-- 
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