From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11085 invoked by alias); 10 Jun 2016 19:49:38 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21644 Received: (qmail 23594 invoked from network); 10 Jun 2016 19:49:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=rWUWmgjV8NmRMIESYMW6KmqjaphQ34XU8asO11rBxp4=; b=aX/MvBEU83tz8SB7kftfWWYfccqhhmaMJ8Zwv9v5j7kSCWN2TscfMr1jakCpvUKmQK 3Wjlf0AuD6t9sp8Xzc+pHDnw5kXkH4ld1r65CRtuAQKVzYsbv3rSzknGZm8Ap5bjAF3E ZrawsJJeux0g2TG+fdO+uT6AcNbouvUlv3jpt1wbLpbMrpmE4NH9jgbUHzImuEr5+3r6 bZ8VXpxBPP4DdHcGAHB+LxzguTsMAcjw75AGWzZAarTr7v1w58iF078QZGVfmyPlamBI +fbTD8mTIzWp9sMFJIEoO6+SQSW9u351QtI2DNxsSZivq2HgYBHkQmhoxLsYcTerdZHj UXqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=rWUWmgjV8NmRMIESYMW6KmqjaphQ34XU8asO11rBxp4=; b=enSIG5Cu4OLuSoR5q6ZdcoiXRyLToX74zoLBj/cSE+fLVLEyAF/TGTH+a/Pr+v/ouA gw91SA8bNZmlnEx1t1PX7erMGKZKGO9pgvzENQLuTaV826Hno4Q6GpPzISbgU/hPtvq4 cMNTRbAcFao3HC4V7WiAtV3QAVRHjoLnC5+gQvqOvePfuSqJrfJIK5uCUroYSDqhZ2bO oBKD/mAuSpMx0Tky7OztTDzTyM0SyBHrNbAVImb595LMssTUmP9cgyolplwKKoAHUgbN A9iMCtHYe4HrzwI6xo4LawJR0b6z1NRgEcAG9OB1aYGdfnO2SmxgkmWz2AuKeXBvvu7V vuNQ== X-Gm-Message-State: ALyK8tJwDng29vEUb5SaI83+oZ69tfuECRam3YGidumSbzuisqc75XDsC6A/+iyRzLqt1Q== X-Received: by 10.66.126.47 with SMTP id mv15mr4163652pab.74.1465588174311; Fri, 10 Jun 2016 12:49:34 -0700 (PDT) From: Bart Schaefer Message-Id: <160610124947.ZM9614@torch.brasslantern.com> Date: Fri, 10 Jun 2016 12:49:47 -0700 In-Reply-To: <20160610173555.GA5729@tarsus.local2> Comments: In reply to Daniel Shahaf "Re: Are completions in some way heavy?" (Jun 10, 5:35pm) References: <160606090104.ZM11947@torch.brasslantern.com> <160607134455.ZM29902@torch.brasslantern.com> <30148.1465376630@thecus.kiddle.eu> <160608114009.ZM807__13786.2274809324$1465411295$gmane$org@torch.brasslantern.com> <20160610173555.GA5729@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Are completions in some way heavy? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 10, 5:35pm, Daniel Shahaf wrote: } } Bart Schaefer wrote on Wed, Jun 08, 2016 at 11:40:09 -0700: } > I see. I don't really have any good suggestions here -- there is the } > _complete_fallback idea but all it does is provide alternate guesses } > for the possible argument positions, which doesn't help in this case. } > } } I use the _match completer, so "grep --*bin" completes to } "--binary-files=". It doesn't match against descriptions though. Unfortunately that doesn't help either, because the problem is that the completion function didn't provide --binary-files as a possible match in the first place. The question is whether we can provide any useful help when a completion can't find a match, sort of like the way Google suggests an alternate query when your search turns up no pages.