Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Custom Matching Groups
- X-seq: zsh-users 16765
- From: Andrew Grinin <agrinin@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Custom Matching Groups
- Date: Tue, 14 Feb 2012 19:11:27 +0200
- 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=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author