From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2602 invoked by alias); 7 Feb 2014 12:21:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32360 Received: (qmail 26463 invoked from network); 7 Feb 2014 12:21:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f796d000005a13-e9-52f4cfd6ed42 Date: Fri, 07 Feb 2014 12:21:41 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: When you know completion will be slow ... Message-id: <20140207122141.5052dd75@pwslap01u.europe.root.pri> In-reply-to: <140206080443.ZM27528@torch.brasslantern.com> References: <140206080443.ZM27528@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmluLIzCtJLcpLzFFi42I5/e/4Fd1r578EGax5aWVxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4MnYuzym4yV7x98oyxgbG2WxdjJwcEgImEku/XmCEsMUkLtxb DxTn4hASWMoosWLHBhYIZzmTxK4515hBqlgEVCW2Pr8O1sEmYCgxddNsMFtEQFzi7NrzLCC2 sICZxLkfvawgNq+AvcTxrzfBejkFrCQWHu8EinMADbWUWH42DiTML6AvcfXvJyaII+wlZl45 wwjRKijxY/I9sJHMAloSm7c1sULY8hKb17xlnsAoMAtJ2SwkZbOQlC1gZF7FKJpamlxQnJSe a6hXnJhbXJqXrpecn7uJERKAX3YwLj5mdYhRgINRiYf3xNLPQUKsiWXFlbmHGCU4mJVEeDlP fgkS4k1JrKxKLcqPLyrNSS0+xMjEwSnVwLjOctFqplkuLw1iHv6yn1376ClviYjG/M+WXw1f nLzX+iY0vvPbq7CLE9et2RA4bd4t23r1T1UTN7vr5SlPS7solyefrSt8l2X+P91n04/GV23e EJTqoG95/QPXwVBG3R1Rt1n+XftocGFr7A/7WwyHXjzqc62L1/jX/mtj+gPjdyedd/yteyqs xFKckWioxVxUnAgAGhqGhx4CAAA= On Thu, 06 Feb 2014 08:04:43 -0800 Bart Schaefer 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