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.1 required=5.0 tests=DATE_IN_PAST_06_12, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=no 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 0663e829 for ; Thu, 5 Dec 2019 19:02:28 +0000 (UTC) Received: (qmail 14971 invoked by alias); 5 Dec 2019 19:02:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44987 Received: (qmail 20596 invoked by uid 1010); 5 Dec 2019 19:02:21 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25653. spamassassin: 3.4.2. Clear:RC:0(205.235.26.22):SA:0(-1.6/5.0):. Processed in 18.720829 secs); 05 Dec 2019 19:02:21 -0000 X-Envelope-From: SRS0=e2wf=Z3=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at bounces.park01.gkg.net designates 205.235.26.22 as permitted sender) X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 X-YMail-OSG: UE4xDqAVM1nNSSJ6I5adGjJzfV8EcpkYTeMoFb_lJs_qO8bfHXBhtzaKilI9ZOz a2SMDSUhXhmtGep1sHiNTUv_O4fOk3WMfqmZYoqhExlJ52H4prUrZv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W1yPNCZjrcSJJd5U DpqeeWyTnTZZeuECcNNlxtUEb_R35L9ncgyx9nrFmOM_lGoJT9SNTldHt9fv46qhvZwMTvCJsEC5 ZEb3UD9YI5fTeSjxu_zc3mqUR5GC9apVBJbnGds9_9LfXbNSl_ydNyBdYLbRUfK21eleYEXL4Qw8 sGNbkVK7.oiOe..DQhDzBa3vEX3i4ni9f6aTd.Qsqipn9PUr3qCZGTHtpu0XKKg3iFCM97jzTBf4 1UFw3t9igeBsZ7_kM7ONi7C92 In-reply-to: From: Oliver Kiddle References: <20191129122141.rekf7hcxtacjojo2@localhost> <20191129172303.sd5bj3gukhdb7mpp@localhost> <20191129203707.ipf4zjkkptg35lpa@localhost> To: zsugabubus , "zsh-workers@zsh.org" Subject: Re: Funky list-colors MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10716.1575531843.1@hydra> Date: Thu, 05 Dec 2019 08:44:03 +0100 Message-ID: <10717-1575531843.649205@8BHq.aUkQ.N3ux> X-Mailer: WebService/1.1.14728 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) Bart wrote: > For even more detail you can use something similar to: > compadd -o -d labels_array -a filenames_array > where there is one entry in $labels_array for each entry in > $filenames_array. The completion system will arrange to build a grid > of the labels and names so that each name is paired with the > corresponding element from the labels. However, it does place the > labels to the right of the names rather than to the left. Actually the array specified with -d is not just for the labels but for the whole string - match and label. So you can make any change you like to how the match appears in the completion listing for your own custom version of the LIST_TYPES option. The common rendering of the match followed by a separator (-- by default) and a label is not part of compadd. (in terms of man pages/documentation sections, it is part of zshcompsys rather than zshcompwid). In most, but by no means all, cases this is done from _describe. This also means that for things like the list-colors style, patterns match the whole display string. It can thus be used to change attributes for either or both match and label. For an example, try: '=(#b)(--) (*)==32=3' Oliver