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

Re: Question about matching completions with descriptions



Nicholas Wiles wrote on Fri, 08 Jun 2018 11:13 -0700:
> I have a question about the _describe builtin.
> I am building a binary that provides dynamic completions using a completion
> function.
> 
> Is to possible to provide completions to _describe that will be matched not
> only on the text of the completion but also on words/text in the
> description?

I asked this once and the answer was that that wasn't possible.  I'd
have linked you to the thread but I looked for it and can't find it :(

> Or, is it possible to turn off completion matching entirely
> and have zsh present the user with a verbatim set of completions provided
> to compadd or _describe? Thanks in advance!

Does passing -U (and possibly -V) to compadd do what you need?



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