From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: Can't complete path with hidden .zfs?
Date: Fri, 19 May 2017 09:30:52 +0100 [thread overview]
Message-ID: <20170519093052.1832023d@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20170519033809.GA16150@lilyforest.localdomain>
On Fri, 19 May 2017 11:38:09 +0800
lilydjwg <lilydjwg@gmail.com> wrote:
> On Thu, May 18, 2017 at 10:02:20AM +0100, Peter Stephenson wrote:
> > zstyle ':completion:*' accept-exact-dirs true
>
> It works, thanks!
Here's some improved documentation about the cases in question.
pws
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 2a112ed..ec1809f 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1158,6 +1158,12 @@ directory is accepted without any attempt to complete it further.
Hence, in the given example, the path tt(/usr/bin/) is accepted
immediately and completion tried in that directory.
+This style is also useful when completing after directories that
+magically appear when referenced, such as ZFS tt(.zfs) directories
+or NetApp tt(.snapshot) directories. When the style is set the
+shell does not check for the existence of the directory within the
+parent directory.
+
If you wish to inhibit this behaviour entirely, set the tt(path-completion)
style (see below) to `false'.
)
@@ -1428,9 +1434,10 @@ or colons in var(dir) should be quoted with a backslash to be treated
literally.
This can be useful on systems that support special file systems whose
-top-level pathnames can not be listed or generated with glob patterns.
-It can also be used for directories for which one does not have read
-permission.
+top-level pathnames can not be listed or generated with glob patterns
+(but see tt(accept-exact-dirs) for a more general way of dealing
+with this problem). It can also be used for directories for which one
+does not have read permission.
The pattern form can be used to add a certain `magic' entry
to all directories on a particular file system.
next prev parent reply other threads:[~2017-05-19 8:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170518034638epcas3p184182faf0a2f6197f34386a052b7c856@epcas3p1.samsung.com>
2017-05-18 3:44 ` lilydjwg
2017-05-18 9:02 ` Peter Stephenson
2017-05-19 3:38 ` lilydjwg
2017-05-19 8:30 ` Peter Stephenson [this message]
2017-05-24 10:41 ` lilydjwg
2017-05-24 19:03 ` Bart Schaefer
2017-05-25 6:35 ` lilydjwg
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=20170519093052.1832023d@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.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).