From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: When you know completion will be slow ...
Date: Fri, 07 Feb 2014 12:21:41 +0000 [thread overview]
Message-ID: <20140207122141.5052dd75@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <140206080443.ZM27528@torch.brasslantern.com>
On Thu, 06 Feb 2014 08:04:43 -0800
Bart Schaefer <schaefer@brasslantern.com> wrote:
> Completion functions that are going to perform potentially slow operations
> (e.g., "git ls-files" is unpredictable on large repos, or the example from
> recently on zsh-users of "system_profiler -listDataTypes") could warn the
> user that there will be a delay.
>
> The "zle -M" command works from inside a completion widget, and will erase
> the completion listing (which is then redrawn), so it could be used to
> display a message just before the long operation begins.
Do you know about the show-completer style? It's not quite the same
thing but by the same token that means you get information even if you
don't know in advance completion's going to be slow. I added this ages
ago and have been using it without any problem ever since (I don't even
notice the message unless somethings taking a long time and had to
confirm by trial that it was really appearing).
pws
next prev parent reply other threads:[~2014-02-07 12:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 16:04 Bart Schaefer
2014-02-07 12:21 ` Peter Stephenson [this message]
2014-02-07 16:14 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140207122141.5052dd75@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).