From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18931 invoked by alias); 14 Feb 2012 17:11:36 -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: 16765 Received: (qmail 12532 invoked from network); 14 Feb 2012 17:11:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.217.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Y6DUJSounqSg2GrWyxLWXLFWFo/BDFwGqN8MvgBDGKI=; b=v9d4lmA/eDA2ajRBDSpd2AKwmfLUqB65LqJA0sHMpLYZ+UpuvCymti5YlBMc4G7IIM VMKlYjg0K7kgOGkJVjDZRxEq5r9NWUiCBfUofOh8GrnI6gnor7RZHxsP+/2iOGQQ0Fve ZJPQGhPWgLX3taNAXL7A7mMicmuzAvaaFWi7Q= MIME-Version: 1.0 Date: Tue, 14 Feb 2012 19:11:27 +0200 Message-ID: Subject: Custom Matching Groups From: Andrew Grinin To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=f46d04016a1979f9aa04b8efaf70 --f46d04016a1979f9aa04b8efaf70 Content-Type: text/plain; charset=UTF-8 Hello, How do I define custom matching groups (i. e. separate all the matches into groups by certain criteria) and disable default ones? zshcompsys(1) manpage says it is accomplished via "group-name" style, but when I add something like: zstyle ':completion:*:*:-command-:*:builtins' group-name 'built-in commands' zstyle ':completion:*:*:-command-:*:commands' group-name 'external commands' nothing changes. Even the group name does not change. Actually the whole "group defining" thing is not clear to me. For example, how do I remove a default group "reserved word" (I don't think I need it in completion simply because these words are well-known and not so many of them)? Or how do I define a combined "aliases/functions" group that would contain both command aliases and shell functions I've defined. And as far as I know (correct me if I'm wrong), there's even no such tag as "alias"... Thanks a lot. --f46d04016a1979f9aa04b8efaf70--