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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 b1530098 for ; Thu, 27 Jun 2019 05:48:53 +0000 (UTC) Received: (qmail 6203 invoked by alias); 27 Jun 2019 05:48:43 -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: 23988 Received: (qmail 8335 invoked by uid 1010); 27 Jun 2019 05:48:43 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f176.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.208.176):SA:0(-1.9/5.0):. Processed in 1.614433 secs); 27 Jun 2019 05:48:43 -0000 X-Envelope-From: schaefer@brasslantern.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.208.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xanzGlIPk2P0ip2K3dIk4aPdefuP5RRaHx4FTiWrkis=; b=w3pwRTNnd3Pacf6FZlRU3SR1fxy+Lok4QSfEZnMnPfGXAJ37HxfF2H1kDLklAW+p4W tz6Hle/8eR/W9aROti/NYsLacgr4i6g7202lNEYxerHqB4UkTrkdD1xMhQ047uHjwT38 EzTfOnAwPn3umRIXlttPiZRcFE6uFR7iZJQpal29Xpk4upj+TdiyWUtswfhI7uhyHR/C Jr0OeZFcUQk9OC+yiwedUAS5aFJ3mtVRtqWXUwEIGyj+NMZXG0IH82vD3QO3FXIalx6q UlLkumGqat3kHGu+04Yf5OIavJxzKObk10d3bEiB7aZCy82NIjgeuEsTT5jDeC3OUhGf W4FQ== 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=xanzGlIPk2P0ip2K3dIk4aPdefuP5RRaHx4FTiWrkis=; b=hYxLUoNfOsM+dbAXiy0X3QfLEGFUJs2IHa5Hj8235gcGCyMyG3tBRlv5GamPBle2w7 6GnEQr7eWiNxev9QVfSypXbzTF3owhQK7C2a2aJhkTYE3DLuOBTIBnt1/d127RqzMMOu G6ycW/ogUTbteGh0Obrc7AjIYNZLPCCHBUVadG2+dqBoa5Nk+FNZGqxqDtcgnWZZ8UJ7 qIq6iQWCd4jle9JyA4IlrhORDqzs2/utFeHkYe5L92ueLITB2nnfJTmAfbkhrrZw4zgz UWDbPZAioSU8uE9Y8Ix+gHKqoCblvrMJPNc++8xvFsPHLbHQJiZn8Lr+dkxFj9rmyOaX 1+FQ== X-Gm-Message-State: APjAAAXl626NQbgF03FxKV4/gQIeHV79Dyi9EBxyen7dKGqCIsvzbQV9 kCET0x+WfNcrFQqNSBHrZ8bvRLtykOnecvJz3F3UCg== X-Google-Smtp-Source: APXvYqzHWuLsnujne1lJTI6N5rFsm73gVDQKzhgRLffha1NflzXb902UznJo3WGQamfQF/zLeQUl5PLeTmxxpgK5N7Y= X-Received: by 2002:a2e:658e:: with SMTP id e14mr1316197ljf.147.1561614486362; Wed, 26 Jun 2019 22:48:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Wed, 26 Jun 2019 22:47:54 -0700 Message-ID: Subject: Re: modify compadd-ed values To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: text/plain; charset="UTF-8" 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.