From: Andrew Grinin <agrinin@gmail.com>
To: zsh-users@zsh.org
Subject: Custom Matching Groups
Date: Tue, 14 Feb 2012 19:11:27 +0200 [thread overview]
Message-ID: <CAKssUqHengrm2DiAd+ELxVN+_iayA7hg_NuhBpadaETf=WkYcQ@mail.gmail.com> (raw)
[-- 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.
reply other threads:[~2012-02-14 17:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKssUqHengrm2DiAd+ELxVN+_iayA7hg_NuhBpadaETf=WkYcQ@mail.gmail.com' \
--to=agrinin@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).