Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Question about matching completions with descriptions
- X-seq: zsh-users 23457
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Nicholas Wiles <nhwiles@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Question about matching completions with descriptions
- Date: Fri, 08 Jun 2018 18:38:15 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=eMA7xO dAnEPuQ+V0xKJ6NWihGt/fN4sV9pAvhKavNHM=; b=B7HwttjamXEI4YttD0TebB L/5OcPIvuXMN4P8B2KGF/WL4umn4alwToruCcypjk7ssErRwE+88gtjAUHKMya49 ko2qF5mNKkr+nxjGCf4LcTnNsa7atNQwRgnGt1+o+QweMSPnSuNKE4M3pDO/2Kbu NkXtMwFBfsGlosMkF82vRsEwvPmyhOTZP4eisF50T9y2yikJGUjoXeh+PmTX8fUl gcz6ara6ntKOiHcIBnVSNx3aoo8kqz1OqWm1x2EWoxbSUyRfSumwkhnaKgqEFSyE Ke0FWll8YVMhR/EcuP6k3vVK87X0tHCxqUxF5QMwng7DD/XQUKd6EgKvBi3AlPKg ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=eMA7xO dAnEPuQ+V0xKJ6NWihGt/fN4sV9pAvhKavNHM=; b=KjyFSDtL45TKrC8jN8QgGk HymsulvUfJgnkr+zB4MuTW6am+l3YuJhbDb6maspnkdcY0if4n7hWUwDjbeBzrak i9CbgeFUTWWu1ZHx3FSwofnb0QxtyVkzua9uUZOfGq56KceQiU/SkI/tuiaio5em zu/o5xocmCfTFSh9+N8r3CGz7kV9eoWxhUqhrxBkl739WLsh/0/lrtOnF5r+/OgM 6QJKLmOwB4DxupvUEE5+/87QFVvKeZhDgXK2PW8n/vcMu6Van6k0On58uHngCkF7 jb+pBT28InSqQ12nbvjRI1t6CRQ1RkufKSXhc+L/KwUqLmuVD6KM9ZL8iEqDQVdg ==
- In-reply-to: <CAF4qJWXNmCoZmcH89mX8GQrR+Hg9hbPsVKyBi-sfF3YO3WLx0Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAF4qJWXNmCoZmcH89mX8GQrR+Hg9hbPsVKyBi-sfF3YO3WLx0Q@mail.gmail.com>
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