Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Are completions in some way heavy?



Bart Schaefer wrote on Wed, Jun 08, 2016 at 11:40:09 -0700:
> 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 <schaefer@xxxxxxxxxxxxxxxx> 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<TAB>. 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.
> 

I use the _match completer, so «grep --*bin<TAB>» completes to
«--binary-files=».  It doesn't match against descriptions though.



Messages sorted by: Reverse Date, Date, Thread, Author