zsh-users
 help / color / mirror / code / Atom feed
From: Matt Wright <matt@sysctl.co.uk>
To: zsh-users@zsh.org
Subject: Re: Zsh autocompletion with no access to a parent directory
Date: Tue, 13 Apr 2010 10:11:46 -0700	[thread overview]
Message-ID: <FADB338E-80E0-4705-9B03-01C90399B229@sysctl.co.uk> (raw)
In-Reply-To: <20100413174533.5a15043a@news01>

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

Yep, sadly this doesn't work. 

> I'm not sure if this will help in the case you're describing, however,
> since it looks like it might not be able to tell if the directory exists.
> You'll need zsh 4.3.

zsh 4.3.9

I found something along the following lines:

zstyle -e ':completion:*' file-patterns '[[ $PREFIX == /expanded/path/to/network/[^/]# ]] && { setopt noglob; reply=(*(@)); setopt glob }'

That doesn't appear to do anything interesting though. I suspect I'm barking up the wrong tree with that one?

M


  reply	other threads:[~2010-04-13 17:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 16:33 Matt Wright
2010-04-13 16:45 ` Peter Stephenson
2010-04-13 17:11   ` Matt Wright [this message]
2010-04-13 20:33   ` Matt Wright
2010-04-14  9:14     ` Peter Stephenson
2010-04-14  9:47       ` Peter Stephenson
2010-04-14 10:01         ` Peter Stephenson
2010-04-14 17:20           ` Matt Wright
2010-04-23 15:01         ` Matt Wright
2010-04-23 21:44           ` Peter Stephenson
2010-04-29 21:38             ` Peter Stephenson
2010-04-29 22:14               ` Matt Wright
2010-04-30  8:32                 ` Peter Stephenson
2010-04-30 16:05                   ` Matt Wright
2010-05-05  4:55                   ` Matt Wright
2010-05-05  9:58                     ` Peter Stephenson
2010-07-29 15:46                   ` Matt Wright
2010-08-03 12:59                     ` Peter Stephenson
2010-04-30 16:14               ` Bart Schaefer
2010-06-25 12:27 Yves Frederix

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=FADB338E-80E0-4705-9B03-01C90399B229@sysctl.co.uk \
    --to=matt@sysctl.co.uk \
    --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).