zsh-users
 help / color / mirror / code / Atom feed
* Custom Matching Groups
@ 2012-02-14 17:11 Andrew Grinin
  0 siblings, 0 replies; only message in thread
From: Andrew Grinin @ 2012-02-14 17:11 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-14 17:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 17:11 Custom Matching Groups Andrew Grinin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).