From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: why '_file -/' completes files if there is no directory?
Date: Thu, 25 Jul 2013 23:09:12 +0900 [thread overview]
Message-ID: <09EC9380-2BAE-4669-B03C-E365FFE1CB00@kba.biglobe.ne.jp> (raw)
With the following style:
zstyle ':completion:*:warnings' format 'No match for: %d
If there is no subdirectory in the current directory,
zsh$ cd <TAB>
gives
No match for: `local directory'
but
zsh$ rmdir <TAB>
completes the normal files in the current directory.
Similar behavior for 'gcc -I<TAB>' etc.
Not a serious problem, but I prefer getting a warning than being
offered a useless list of normal files.
Are there any way to stop this behavior by using zstyle?
Obviously I can't use
zstyle ':completion:*' file-patterns '*(-/)'
so I tried
zstyle ':completion:*:directories' file-patterns '*(-/)'
but it didn't' work (it seems setting file-patterns for a specific
tag has no meaning). Setting file-patterns (or tag-order?) to each
context ':completion:*:gcc:option-I-1:*' etc. may work, but I don't
want to do that even if it works.
next reply other threads:[~2013-07-25 15:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 14:09 Jun T. [this message]
2013-08-08 6:56 ` Bart Schaefer
2013-08-08 16:34 ` Jun T.
2013-08-09 5:59 ` Bart Schaefer
2013-08-09 13:27 ` Jun T.
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=09EC9380-2BAE-4669-B03C-E365FFE1CB00@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@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).