From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 58c6731f for ; Thu, 27 Jun 2019 06:43:28 +0000 (UTC) Received: (qmail 11595 invoked by alias); 27 Jun 2019 06:43:21 -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: List-Unsubscribe: X-Seq: 23989 Received: (qmail 11816 invoked by uid 1010); 27 Jun 2019 06:43:21 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25489. spamassassin: 3.4.2. Clear:RC:0(209.85.217.41):SA:0(-2.0/5.0):. Processed in 1.52246 secs); 27 Jun 2019 06:43:21 -0000 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.41 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f/Isj9dRfzIVp1OiqlWbFUhedrvWG8Nhtbo3BnQVi4o=; b=EenUtP60bgEpvXIB7mLJsyky7RKCYi+4SxqmHQwPMY0aTygdNuTtfCye/+rggps7oO VQO8CbgLVNY6t5eXwPmTKIDlbFjIG5S7ke7sGIuQ6hDyVckjL3DF5AeEAv7t89VvyU9h 2ViYY+sVKgMT0bXIYL2nnQnPedILxS/szGrdMTlTnfdHbMY6UmGqDoYRzyjIQmxRPSnc 1DcCT5399co4M3+k+0UebXwZt5BsY236nwrhqhdizfAQ35JJLzFmcQcaYAunGBSXWnrj u4EPn1420RdVAT9OcIEAYzXhqYCwQDqrgK0fwox43POftaSi8Z8mRgoYCriHK7A0FoXS mCNw== X-Gm-Message-State: APjAAAUrP6yAN3oJXWTDKXuiLpaMqKwJP8os6vuoY1RYYyUzHJG7//oo KlGgxM+Yo9YA/U8Iy1WzGewcK6qxhPmZNKXSDkl6xw== X-Google-Smtp-Source: APXvYqygnim6gRLQ5JD5Gbcb753Y9xBn5s/DP+CIkO+AQP8yJPLRhEQkmDtQUdy75MxC9gw7JUbSghINAHWNetP1D6U= X-Received: by 2002:a67:eb83:: with SMTP id e3mr1627824vso.57.1561617766324; Wed, 26 Jun 2019 23:42:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Thu, 27 Jun 2019 08:42:35 +0200 Message-ID: Subject: Re: modify compadd-ed values To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000003c9ec1058c4878fb" --0000000000003c9ec1058c4878fb Content-Type: text/plain; charset="UTF-8" Awesome, thanks! Il giorno gio 27 giu 2019 alle 07:48 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Wed, Jun 26, 2019 at 3:50 PM Pier Paolo Grassi > 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 --0000000000003c9ec1058c4878fb--