From: "Rogutės Sparnuotos" <rogutes@googlemail.com>
To: zsh-users@zsh.org
Subject: completion: matcher(-list) and tags
Date: Thu, 22 Jul 2010 03:55:58 +0300 [thread overview]
Message-ID: <20100722005557.GA16523@urvas> (raw)
G'day,
I am trying to get this to work:
zstyle ':completion:*:all-files' matcher-list '' \
'm:{[:lower:]}={[:upper:]}' '+e:=*' '+b:=*'
because I do not need the matcher-list to apply for all tags (and it is
too slow with slower machines). But the zstyle does not work.
Looking through zshcompsys(1), I find a paragraph under the tag-order
explanation, saying that matcher-list "is tested very early in the
completion system and hence can't be set for single commands nor for more
specific contexts" (but if so, shouldn't such matcher-list usage exit with
an error?). So I try to adapt a tag-order + matcher example to test things
out:
zsh --no-rcs
autoload -Uz compinit; compinit
zstyle ':completion:*' format '=== %d ==='
zstyle ':completion:*' tag-order '*:-case:XXX'
zstyle ':completion:*:*-case' matcher 'm:{a-z}={A-Z}'
And it seems to work for commands, but not for files... What am I doing
wrong (zsh-4.3.10)?
----
Below is a snippet from a testing run with the above zstyles (ran from
/usr/bin, with it being in path and containing the Xorg binary):
1. 'ls<TAB>' shows '=== XXX ==='
2. 'ls <TAB>' shows '=== XXX ==='
3. 'ls xorg<TAB>' prints '=== `files' or `XXX' ==='
4. 'xorg<TAB>' completes to 'Xorg'
5. './xorg<TAB>' prints
=== `external command', `XXX', `executable file or directory', `builtin
command', `shell function', `alias', `suffix alias', `reserved word',
`job', or `parameter' ===
--
-- Rogutės Sparnuotos
next reply other threads:[~2010-07-22 0:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 0:55 Rogutės Sparnuotos [this message]
2010-07-22 16:25 ` Bart Schaefer
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=20100722005557.GA16523@urvas \
--to=rogutes@googlemail.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).