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=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 9d396584 for ; Sat, 7 Dec 2019 20:59:30 +0000 (UTC) Received: (qmail 24458 invoked by alias); 7 Dec 2019 20:59: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: 44990 Received: (qmail 21546 invoked by uid 1010); 7 Dec 2019 20:59:21 -0000 X-Qmail-Scanner-Diagnostics: from mx1.cock.li 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(185.10.68.5):SA:0(-1.9/5.0):. Processed in 2.084017 secs); 07 Dec 2019 20:59:21 -0000 X-Envelope-From: zsugabubus@national.shitposting.agency X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at national.shitposting.agency designates 185.10.68.5 as permitted sender) Date: Sat, 7 Dec 2019 21:58:34 +0100 From: zsugabubus To: zsh-workers@zsh.org Subject: Re: Funky list-colors Message-ID: <20191207205819.ff7scz6ok7ux5dyr@localhost> References: <20191129122141.rekf7hcxtacjojo2@localhost> <20191129172303.sd5bj3gukhdb7mpp@localhost> <20191129203707.ipf4zjkkptg35lpa@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Dec 04, 2019 at 03:27:17PM -0800, Bart Schaefer wrote: > OK, so what you want here is not to fiddle with the way completion > applies colors to the grid, but the way it populates the grid with > file names. > > The first and most straightforward thing you might do is set the > LIST_TYPES option [...] > > If that's not sufficient [...] you should look at the file-patterns > zstyle... Thanks, I know about and using both. > If that's still not enough, then you'll want to create your own > completion function to manage these files. "compadd -P prefix ..." > will attach a prefix to each string added by that call to compadd, > where that prefix is NOT treated as part of the file name... I tried it but my input was immediately completed by this prefix. "ls " -> "ls prefix". If it's the intended behavior, I'm surely not look for this. > For even more detail you can use something similar to: > compadd -o -d labels_array -a filenames_array It looks wonderful! I think it will work for me. Can I make parts of labels bold or colored? (Zsh seems to escape escape codes.) Or it's only doable with "list-colors"? -- zsugabubus