From: Ahmad Ismail <ismail783@gmail.com>
To: zsh-users@zsh.org
Subject: how to use tags in zsh completion system
Date: Wed, 26 Aug 2020 14:59:28 +0600 [thread overview]
Message-ID: <CAHAhJwJdcSYaftAkfOyv2v63LW-SdwV+34LZh0i-E3GUJzZv1g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]
The [documentation][1] says
> zstyle ':completion:*:aliens:*' tag-order \
> 'frooble:-funny:funny\ frooble' frooble
>which is used when you're completing for the command aliens, which
presumably has completions tagged as `frooble' ...
I understand that both context and tag can be viewed using <kbd>^Xh</kbd>.
So, I tried the following command but suggestion did not show the tags.
% zstyle ':completion:*:aliens:*' tag-order 'frooble:-funny:funny\
frooble' frooble
% aliens <kbd>TAB</kbd>
Completing file
Desktop/ Documents/ dotfiles/ Downloads/
% aliens <kbd>^Xh</kbd>
tags in context :completion::complete:aliens::
globbed-files (_files _default)
% aliens frooble <kbd>^Xh</kbd>
tags in context :completion::complete:aliens::
globbed-files (_files _default)
I think I am doing something wrong with
> completions tagged as `frooble'
Please help me understand how to use tags in zsh completion system.
[1]: http://zsh.sourceforge.net/Guide/zshguide06.html#l155
[-- Attachment #2: Type: text/html, Size: 1363 bytes --]
next reply other threads:[~2020-08-26 9:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-26 8:59 Ahmad Ismail [this message]
2020-08-26 10:57 ` Peter Stephenson
2020-08-26 11:28 ` Ahmad Ismail
2020-08-26 12:01 ` Peter Stephenson
2020-08-26 12:39 ` Ahmad Ismail
2020-09-04 19:23 ` Daniel Shahaf
2020-09-05 11:29 ` Ahmad Ismail
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=CAHAhJwJdcSYaftAkfOyv2v63LW-SdwV+34LZh0i-E3GUJzZv1g@mail.gmail.com \
--to=ismail783@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).