From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14522 invoked by alias); 31 Jan 2016 15:38:46 -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: X-Seq: 21213 Received: (qmail 9482 invoked from network); 31 Jan 2016 15:38:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=j/8Z4lep5WHEcTOWpZuMuvGrSKZP5hGWaRP9HNh1NVQ=; b=qJEKLO74xcYfDAmxBw0yaSxbdIWHN+fEHL24MAEptWkhRkWl4muAAC1TS9oUb80BD/ 7BfA12chxiRxKFAfwcxocSLOGhDpA6Jltw+o+ctrkVQ8To/ofJ7jeJbpsINXxqtw0/M1 La2RSmNn5lSj1d3mIAgucC4giX4HZryePNkTkYCWGVDx+qQCZxInu7KD0CK5p2K6MyfR jQ7/H2N2smuYQD8PeF9yXoE+dWXuZTKv2w1fqa7kZJ0qbI3OCkxo4LeQqKu4uGCHpA1r u7nNUb2jsKQFR1hHrjzhT3YShqm7X0aDMLTbamWO3JOepgSAzC+1qljvBdh9EgUrlDiP /xSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=j/8Z4lep5WHEcTOWpZuMuvGrSKZP5hGWaRP9HNh1NVQ=; b=nETkQAfmfc43ByW92t/ZdQI5dK75g0nllzDX+SvXt7ARNFAF3mS1Mo5oNemegGeUUo UJTI8R3KHnaknmTv5ssvXsylzlu4BLfR91D78y8myIObAlLjWXVJGBqo+5+1fFKks9QH jpi+SZVS6K1EgIzRoMi7+8psAYzqmkidkmQB1R6hyhGPgDJIW4d6VxasXmhRmkTGmiHe nvbxi1gMrtHpDggyANtZTenpngu4kSh8k6ad1VaYZzcsCAr9oOkMK4W9Yop2nxe04NwE Srm6rq4ysMiqviGygF3DpGKOZznGqKr6PgjkJnU2KLr1j/OT9e9LiqYip4+RyORa9UPw 8Y/w== X-Gm-Message-State: AG10YOSmN6NeLip+4K2B5Bwddpzwwge39eOGL+NxQ9ORQyjKVuwOGhAUeJQk3QCR2NeKDXwPxU0FeYSO2eFVFg== X-Received: by 10.25.80.200 with SMTP id e191mr2705673lfb.150.1454254720783; Sun, 31 Jan 2016 07:38:40 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <160129144546.ZM24675@torch.brasslantern.com> References: <160129144546.ZM24675@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sun, 31 Jan 2016 16:38:21 +0100 Message-ID: Subject: Re: Color in completions To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On 29 January 2016 at 23:45, Bart Schaefer wrote: > You can get color in completion listings with the complist module, > see "man zshmodules" or "info zsh 'The zsh/complist Module'". In > particular this reference to $ZLS_COLORS: > > The leading-equals form also allows different parts of the displayed > strings to be colored differently. For this, the pattern has to use the > `(#b)' globbing flag and pairs of parentheses surrounding the parts of > the strings that are to be colored differently. ... Managed to do this. Had to: 1. Figure out to use _wanted instead of only compadd 2. Figure out what pattern to give to zstyle: zstyle ':completion:*:zplugin:*:argument-rest' list-colors '=(#b)(*)/(*)==1;35=1;33' When I display $curcontext within _zplugin (after adding -C to _arguments), it shows: :complete:zplugin:argument-rest. I wonder why do I need the additional ":*:" before "argument-rest" ? Or even the first one. https://github.com/psprint/zplugin/blob/master/_zplugin Best regards, Sebastian Gniazdowski