From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 376853ee for ; Thu, 20 Dec 2018 00:22:27 +0000 (UTC) Received: (qmail 13498 invoked by alias); 20 Dec 2018 00:22:15 -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: List-Unsubscribe: X-Seq: 43916 Received: (qmail 15480 invoked by uid 1010); 20 Dec 2018 00:22:15 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf1-f53.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.167.53):SA:0(-1.9/5.0):. Processed in 2.163616 secs); 20 Dec 2018 00:22:15 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bLnfBlojWCN4tfkzE9ZlXVJZ5iFJjNz8y9hYtaIdMhE=; b=REFlZH8aA96CVG4wogfchniqtn/i/2Cqogr2NTIlJ4Mhmb7etxV4ho4+mgCbujFxim bk0Blqpsjg1ZW1iGod5RZxCz52Iwb25PAFUlmKXGSQAM/yEFgNXqhRt3gIzOO9P6s1yc Y/C0Wa30e9EBYgMVVvoa7z+N3cdM18BxMT4NouiWSIsg6nixqgyQusEwvzt3YDGGAgQs 9odGaijS5ZjEJtFqZn22n4wopX6VUYMZlrnCVmCjFXNW4GiSSfLHJZE/NwZIa01D1U/Q +8wDSC402vn9zIBIpdJPhE8b47lmY3SlIhxhsm3DCzln1FnBQHh1IgkOptXLglgTxPDp DN8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bLnfBlojWCN4tfkzE9ZlXVJZ5iFJjNz8y9hYtaIdMhE=; b=YwliDyDTq22YYQKZfKXAB21+UHpvun2DKXuLYwbtZljMD8sS9vHCHgxNA9wEr/qJ0p DuCKWYqvV2TpuMuKpshpzZgTuBsNj4JsGVZ70XEqmJSpjUxCPSZrbgiTmG3PVAGPIpDL 2gCkllTRP2qU1JdC03cQFUW2bfgA32oEeEwfKgCUmGZqiMtTTpjtUGgUqOt7ySyGJc4u d3IMFQBOcwuwpwOtfT/U6C5t6uDKM580OotNY+ds4eqLpqek2KP7SmgsFS487Oc5D71C LN1c5p2V9w/bl8xNMuV8esNCgmneGoPrj7bmence2eKlyoKxqIglCoIx5ajsZpPkJFWx BYrQ== X-Gm-Message-State: AA+aEWaNqoDgUKV6+NDjV2kQpQQt/z2oXX/FWllwnX1u+v4t1C45hx1d 43EF3zqR9mIWpaxXMUDTwi/Hw3YuYoNQjlxIeySCBpRF X-Google-Smtp-Source: AFSGD/U/2rb27Y2VZiuovc0wSlmRlpqpypsUnrw+rbFIeAVNxJWcT09BcrsmStgmHpOJkAr4C0ifNcqGkMwIMAqfBd4= X-Received: by 2002:a19:c18d:: with SMTP id r135mr2609440lff.59.1545265328393; Wed, 19 Dec 2018 16:22:08 -0800 (PST) MIME-Version: 1.0 References: <6D1B6E3C-52B9-4AB6-BC48-3C279FCF33FC@dana.is> <1545092371.600233.1611967824.063830D4@webmail.messagingengine.com> In-Reply-To: From: Bart Schaefer Date: Wed, 19 Dec 2018 16:21:55 -0800 Message-ID: Subject: Re: [PATCH/RFC] Completion: Add _composer To: dana Cc: Zsh workers Content-Type: text/plain; charset="UTF-8" On Wed, Dec 19, 2018 at 3:38 PM dana wrote: > > In cases like this where there are many thousands of possibilities, and you try > to complete when there's no prefix/suffix yet on the command line, completion > hangs for ages (several minutes here) on the loop in _multi_parts. I didn't > look very hard but i think maybe this could be improved if the empty argument > were treated as a special case? Even then, though, i's still effectively > unusable if you add too many possibilities at once Maybe compadd itself should throw an error if there are "too many" results. I'm not sure exactly where to catch this or how to determine "too many", though.