From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13215 invoked by alias); 8 Jun 2016 18:40:05 -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: 21630 Received: (qmail 19978 invoked from network); 8 Jun 2016 18:40:03 -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:in-reply-to :comments:to:subject:mime-version; bh=1zAohgy8fAMFgThPilLDICuZvWRoipgecZ++rc/dPNs=; b=VAQnqhTDrncHNsbB6CHIiUwyVbD3BvcG3M3ZWTXqzQCbf1GhK6c/Z2aWm/t1JOTSHJ XojGE+DDRgs/nIb1Ww41w1OH+fp+CEglr2fUpSdph6UnhVkoLk/Js9GOA61L6el8HVgh i1s/5ByjCbFZcXk9OGvEZde4N6KhBqmvsIqSo4e8mL7GvsGE3qXnEycfSxXJiNDwcOC4 AIO88DDnJxHF6nCrzHcZ0ga8Mxo262LJA22ElpVroD7Mgowld4zH+FkO8Jt4nmjV8ki0 IePUBw5kNUFW7AtbU1AqFjV2bZ8rUUBzigxBMXn4pWutNuZB4bIuMXqitv3/yBi6Wts9 rwVQ== 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:in-reply-to:comments:to:subject:mime-version; bh=1zAohgy8fAMFgThPilLDICuZvWRoipgecZ++rc/dPNs=; b=hMzJ2B27TuseHLYzOU8PH/Ka18inaERRNQfavB+Wo7MI8riR7bcYzqMk8LR0Ggy5Y0 ckWhjltZMBhbPJ+mJD5Gc++nTBhEPJt5G5JHDoISlSeNv04IJpartxtgcNZ7XfYIqao8 AmNziTeCPUbGXxQaoEvchgfcjfPWfFdwbAoHuWlOtp8yOfjF0ow3YX6iuUW5s3SbjqzJ QH/5nxl0iwdWeCZZ2PnsKRr8+P7WWhBn+hYEDka+QAaOe+Oc9F2SWiWtiNtkbyKYwZ7R S2+Fbq2GT3nTO4Y6l6sBD/p0jLz5TH1snqNfzL0Tw4/HMdUV9xBRHGQ/UYmA3AsHQivp 1syQ== X-Gm-Message-State: ALyK8tKgECthlwtLVB7AqbVUdRCpLT+P4j14tKRaD78XRJnikChqnCPr4bCIMV0hxW8kXg== X-Received: by 10.66.152.164 with SMTP id uz4mr7248156pab.9.1465411201158; Wed, 08 Jun 2016 11:40:01 -0700 (PDT) From: Bart Schaefer Message-Id: <160608114009.ZM807@torch.brasslantern.com> Date: Wed, 8 Jun 2016 11:40:09 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Are completions in some way heavy?" (Jun 8, 6:34am) References: <160606090104.ZM11947@torch.brasslantern.com> <160607134455.ZM29902@torch.brasslantern.com> <30148.1465376630@thecus.kiddle.eu> In-Reply-To: <30148.1465376630@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "Re: Are completions in some way heavy?" (Jun 8, 11:03am) 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 8, 6:34am, Sebastian Gniazdowski wrote: } Subject: Re: Are completions in some way heavy? } } On 7 June 2016 at 22:44, Bart Schaefer wrote: } > Again if they are actually disturbing you, why are you invoking them } > in the first place? } } Luckily an example can be provided. I was greeping for a text. It was } returning git objects. Wanted to disable lookup in binary files. But } can never remember is it "with-binary-files" or something similar } (turns out it's --binary-files, but my memory didn't play nice on } this). So I entered grep --with. Nothing was returned. 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. It might be do-able to revert to executing run-help when there are no completions found, but that would be wrong in a lot of cases (e.g., on file name not matched, displaying a manual page isn't useful). } I might have tried grep --binary and nothing would be returned because } turns out grep completion is very short on long options on OS X (no } one complained?). No complaints, no. It appears from cursory examination that the person who initally wrote _grep only had access to GNU grep, and _grep has had only a few minor updates since 2002. On Jun 8, 11:03am, Oliver Kiddle wrote: } Subject: Re: Are completions in some way heavy? } } Sebastian Gniazdowski wrote: } > So why did I try completion. To take a guess maybe. This leads to an } > idea of how this could be done: } > } > - tab invokes "small man page" as it usually does after "command -" } > - the text can be searched - entering something greps lines in the "man page" } > - bits of text can be navigated like in file completion when properly } > configured - I mean cursor keys move the reverse highlight over what's } > available } } Menu selection (the zsh/complist module) has an incremental search, so } what you describe above can already be done. I think Sebastian wants to search through the descriptions, whereas the complist search only examines the completions themselves. None of this helps with the situation Sebastian described above wherein the completion results/descriptions do not include the desired content.