Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Cygwin path completion



> Andrej wrote:
> > Even if
> > we cannot find out all drives (is it possible?) _path_files
> still has to
> > treat /cygdrive/?/ specially, and not try to glob it. It
> can also always
> > offer ``cygdrive'' for the first component (of course, if it matches
> > current prefix/suffix).
>
> Sven will have to answer for the feasibility of all of this, but...
>
> One thing that might fit our needs here and elsewhere (e.g.
> speedups of
> path completion when you know you don't want initial path components
> re-jigged) is a style along the lines of fix-path-prefix,
> only maybe with a
> better name.  A number would fix that many components (`2',
> here), while
> something else e.g. `all' would turn off completion of
> earlier bits of the
> path altogether.  A more generic `fix-prefix' might possibly
> be useful in
> certain other completions.
>

While this may be useful, I meant something different. I'd prefer if
/c/d/t would still complete to /cygdrive/d/temp. I meant, that
_path_files (BTW I agree that it already deserves to be converted to
shell code. It may even give old compctl the ability to complete paths)
should simply stuff cygdrive as first component. In the above case the
possible completions would consist of

/c*/d*/t* AND
/cygdrive/d/t*

-andrej




Messages sorted by: Reverse Date, Date, Thread, Author