Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: modify compadd-ed values
- X-seq: zsh-users 23989
- From: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: modify compadd-ed values
- Date: Thu, 27 Jun 2019 08:42:35 +0200
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f/Isj9dRfzIVp1OiqlWbFUhedrvWG8Nhtbo3BnQVi4o=; b=iKlA27WSAFq22qOalxKIdoIrAI7g1cKgoOQS5NkpTMFNZVUFaojKXWxqNRI4++vCEB 9iRpWdcYiMy04EjAZp84yb+u8So1G9RijR7JcYujGAormybzW68juhb9tYC/Riqey2qp tZvOwTVvAZo6pnw519I+I6bCL6Sc5EhnGyuL2Kgg2aRpdY/kbD+TvqIDqKjcZWEiIP2L 3p49DSKAfj7hp/f40XGrkna5ltE6C8BeVoUENuLN/1iOhf4NOIL2LNSKd8mQt2WctJOs qoFF68fWO8Vjft2LqOwgCqXHk1/Y5l8Pt/nuHevb6cUqgyieGZGRAY8onRq0aQQ24KNV UuUg==
- In-reply-to: <CAH+w=7Zw=a6ztVD4iv2rZ+Z9mnanXdiQCWuWi+sAQEj3xKcQeg@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: <CAP+y1xBUVdfGzNdRCOr=RVE0WzS+MvgRC2bqpM-zVDSWcowMQw@mail.gmail.com> <CAH+w=7Zw=a6ztVD4iv2rZ+Z9mnanXdiQCWuWi+sAQEj3xKcQeg@mail.gmail.com>
Awesome, thanks!
Il giorno gio 27 giu 2019 alle 07:48 Bart Schaefer <
schaefer@xxxxxxxxxxxxxxxx> ha scritto:
> On Wed, Jun 26, 2019 at 3:50 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
> wrote:
> >
> > Hello, can someone help me to understand if and how i can modify
> completion
> > results already added through compadd? I would like to use the _files
> > completer to generate results and then add a custom description to each
>
> Look at Completion/Base/Completer/_approximate -- it replaces compadd
> with a wrapper function that it then removes again when done.
>
> You would want to do the same sort of trick, except that your wrapper
> will insert "-O results_array" in its argument list when calling
> "builtin compadd". You can then examine the $results_array after
> calling _files.
>
--
Pier Paolo Grassi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author