zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Cc: lilydjwg <lilydjwg@gmail.com>
Subject: Re: Can't complete path with hidden .zfs?
Date: Thu, 18 May 2017 10:02:20 +0100	[thread overview]
Message-ID: <20170518100220.14cb480e@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20170518034452.GA22579@lilyforest.localdomain>

On Thu, 18 May 2017 11:44:52 +0800
lilydjwg <lilydjwg@gmail.com> wrote:
> When I try to complete path like /zpool/.zfs/snap<Tab> or further, zsh
> shows there are "No Matches Found" even there actually are.
> 
> The .zfs directory is special in zfs: it doesn't appear in "ls" but if you
> access it, it is there. But zsh doesn't complete any path beneath it.

Try:

zstyle ':completion:*' accept-exact-dirs true

The trade off is in path completion:

  ls /usr/l/bin/<TAB>

will usually allow "l" to complete to "local".  With the setting above,
it won't do that if the directory "l" already exists, it'll just blindly
accept it.  I happen to prefer it that way anyway.

pws


  reply	other threads:[~2017-05-18  9:12 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 [this message]
2017-05-19  3:38     ` lilydjwg
2017-05-19  8:30       ` Peter Stephenson
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=20170518100220.14cb480e@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=lilydjwg@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).