Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: modify compadd-ed values
- X-seq: zsh-users 23988
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Subject: Re: modify compadd-ed values
- Date: Wed, 26 Jun 2019 22:47:54 -0700
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- 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==
- In-reply-to: <CAP+y1xBUVdfGzNdRCOr=RVE0WzS+MvgRC2bqpM-zVDSWcowMQw@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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author