zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: RE: PATCH: files and paths and...
Date: Mon, 19 Jun 2000 15:22:41 +0200 (MET DST)	[thread overview]
Message-ID: <200006191322.PAA31860@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Mon, 19 Jun 2000 16:46:36 +0400


Andrej Borsenkow wrote:

> >   zstyle '*:files' fake '/:cygdrive' '/cygdrive:a b c...'
> >
> > Does that work?
> 
> Yes, but I personally prefer combination of
> 
> mw1g017@MW1G17C:/usr/build/zsh/Test% zstyle '*:files' accept-exact
> '/cygdrive/?((#e)|/*)'
> mw1g017@MW1G17C:/usr/build/zsh/Test% zstyle '*:files' fake /:cygdrive
> 
> to avoid listing all drives (that is the whole sense of using /cygdrive
> at all - else I could just mount them). It means, that we may complete
> non-existent drive - but there is really nothing to do about it unless
> some way to list all drives exist.
> 
> BTW as I found out, Cygwin allows you to use
> 
> <DRIVE>:/path/to/file
> 
> and even
> 
> d:\path\to\file (assuming proper quoting on shell level)
> 
> as well. E.g. d:/temp is completely valid. Currently Zsh cannot complete
> it:

Of course, it can. We only need someone who writes it.

Hm. I guess it understands that everywhere, yes? Not only in words
starting with `?:/'. Otherwise someone could write something in _first 
to call `_files -W ...' if the current word starts with that.

If it understand this in `-foo=d:/...', then we need support in
_path_files, but that would be possible (stuff it into prepath, etc
etc...). But only when on cygwin, of course, probably only if the
style support-cygwin(-s-rotten-paths-urgh) is set.

> ls d:/tTAB gives nothing. Sigh ... but probably we should move this
> discussion to zsh-users (to find out, just how useful it is at all).

Yes. The other stuff might be useful elsewhere. I've no idea how many
(poor) people (are forced to) use cygwin?


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-06-19 13:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-19 13:22 Sven Wischnowsky [this message]
2000-06-28  8:25 ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
2000-06-28  8:43 Sven Wischnowsky
2000-06-19  9:29 Sven Wischnowsky
2000-06-19 12:46 ` Andrej Borsenkow

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=200006191322.PAA31860@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).