Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completing UNC paths in Windows/Cygwin
- X-seq: zsh-users 16324
- From: Hannu Koivisto <azure@xxxxxx>
- To: Nikolai Weibull <now@xxxxxxxx>
- Subject: Re: Completing UNC paths in Windows/Cygwin
- Date: Wed, 07 Sep 2011 18:54:42 +0300
- Cc: "Zsh Users' List" <zsh-users@xxxxxxx>
- In-reply-to: <CADdV=Ms37Km-uZFoG3FMjrwTM5GezgvRSXhr00Mt-mNwndKG0w@mail.gmail.com> (Nikolai Weibull's message of "Wed, 7 Sep 2011 11:58:37 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <834o0pd0m9.fsf@kalahari.s2.org> <CADdV=MsJBV-kFyML6McfPkH+vzDo0e406Aw-J1R1mhJarTGvbQ@mail.gmail.com> <83y5y0bryf.fsf@kalahari.s2.org> <CADdV=Ms37Km-uZFoG3FMjrwTM5GezgvRSXhr00Mt-mNwndKG0w@mail.gmail.com>
Nikolai Weibull <now@xxxxxxxx> writes:
> 2011/9/7 Hannu Koivisto <azure@xxxxxx>:
>> //machine/share/directory/f<complete> doesn't work either for me.
>
> Try setting the accept-exact-dirs zstyle and see if that helps.
It does indeed fix //machine/share/directory/f<complete> and
//machine/C\$/directory/f<complete> but //machine/C\$/<tab> just
causes the shell to get stuck forever (Ctrl-C helps), just like
//machine/<tab> (I guess that one is not surprising as it would
probably require some special code for listing shares).
I have also observed that Program\ Files\ \(x86\)/<tab> fails if
accept-exact style is true. Without the parentheses it doesn't
fail.
It turns out that setting accept-exact-dirs to true in addition to
accept-exact fixes that case.
Admittedly I don't really understand accept-exact, even after
reading the documentation. For some reason I no longer remember I
have copy&pasted it to my .zshrc's Windows/Cygwin specific section
in addition to zstyle ':completion:*' matcher-list
'm:{a-zA-Z}={A-Za-z}' (which I believe I understand).
Am I supposed to set accept-exact-dirs to true if accept-exact is
true? Is there something that zsh could do so that users wouldn't
have to set accept-exact-dirs in order to have
//machine/foo/bar/<tab> work?
--
Hannu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author