From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17447 invoked by alias); 1 Feb 2016 21:30:19 -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: 21221 Received: (qmail 22026 invoked from network); 1 Feb 2016 21:30:15 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=9T7/6Et73ArnGN3U+j/4VZnKGogvSYgTD6FR8NQqBNk=; b=OSsshTA6A8x/egkvl7YvfXOQJ7e/6DG4FMemno38nA4TER6jPpSQoCQtTmJAeN1b85 Equ2M+wgZWuvYEF/hvkhvXxWjVarXjLKWawvk+DiwEGjJhw9kNCVnnA823Y+CCPkr8iz dc3cjVi/4GqOQJhFbdQKXpTstc1PgGdCFhIkNnOQSE2KDibS2NP1XGPyr9UT9quePPRZ T/R9fRvqX5b8R5FI4desl9ic6z+9cd3Byerj+4BCyXcap1RMBeEIlqyV6PIuF2O9/U8F +3cJAzx8yaYg1TBs2g5zlF2xnFIRFGEidJP+7MwfBVYfVdQw31VwLdWylOalWCJ4y4FH RpaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=9T7/6Et73ArnGN3U+j/4VZnKGogvSYgTD6FR8NQqBNk=; b=Xvr1iKTtWRok+j+NXL4+EF7IijWorx+EGBDAiuvwcaw6RFCMOqtL2jQIZBFKTJKA6w HDK/B0oQIZwZhivcxiD5yYSfsjzNXhpudzzgwcIvKdRpNf2ynkrzi5b15cO2qMd/8nQV 9bbYSw0wbhj/g+DmPODJ4C1OgG7YYaN4p9UdiQR+hGD2Z2Dz7Ik+r7XM2cSh7UuJYiGU 0kt9OaQZlx9kMOx0zHeBYE88PaBaPKYT8vgEGmPumBOQp5xP7AUYwLnDAL1r8mJwlhzF Qnwy4X20IFj1MYBbyDjwJchpD29m6eEnteX/IYlVuNwDmiU62iPznLuLNgnivj+AzCIu Xkpg== X-Gm-Message-State: AG10YORi3mkJ69U678pjJnUIiKq89o8SaVTd8W5QX5XGu11bbt6f6/wODk5NC1eseZzLnQ== X-Received: by 10.98.68.220 with SMTP id m89mr41559049pfi.65.1454362211933; Mon, 01 Feb 2016 13:30:11 -0800 (PST) From: Bart Schaefer Message-Id: <160201133104.ZM30504@torch.brasslantern.com> Date: Mon, 1 Feb 2016 13:31:04 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Color in completions" (Feb 1, 5:25pm) References: <160129144546.ZM24675@torch.brasslantern.com> <160131093929.ZM11508@torch.brasslantern.com> <160201065310.ZM29704@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Color in completions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 1, 5:25pm, Sebastian Gniazdowski wrote: } Subject: Re: Color in completions } } On 1 February 2016 at 15:53, Bart Schaefer wrote: } > On Feb 1, 8:49am, Sebastian Gniazdowski wrote: } > } } > } tags in context :completion::complete:zplugin:: } > } argument-1 (_arguments _zplugin) } > } commands (_describe _zplugin) Hmm, I get (after editing _zplugin to add -C): burner% zplg tags in context :completion::complete:zplg:: argument-1 (_arguments _zplugin) tags in context :completion::complete:zplg:argument-1: commands (_zplugin) burner% zplg unload tags in context :completion::complete:zplg:: argument-rest (_arguments _zplugin) tags in context :completion::complete:zplg:argument-rest: plugins (_zplugin) What's different about the _zplugin you're using from the one in github? I'd forgotten that argument-N and argument-rest can appear in both the ARGUMENT position and TAG position in the standard completion context. Also if you look through the _complete_debug output, the context used is really :completion::complete:zplg:argument-rest:argument-rest so you need something in the ARGUMENT. I wonder why _complete_help gets that wrong, but that's why both :argument-rest:* and :*:argument-rest work. } > zstyle ':completion:*:zplugin:*' list-colors ... } } I already had (#mark): } zstyle ':completion:*:zplugin:*:argument-rest' list-colors } '=(#b)(*)/(*)==1;35=1;33' } } Comparing that to your proposition: } zstyle ':completion:*:zplugin:*' list-colors ... } zstyle ':completion:*:zplugin:*:argument-rest' list-colors ... } } it seems that the zstyle #mark is correct, it just matches more - also } the "argument-rest", which is expected, because plugin names may } appear after a command Your #mark style is more specific than my suggestion. That means it matches neither the argument-1 tag nor the command and plugins tags.