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

Re: cvs completion does not support partial path completion



Bart Schaefer wrote:

> ...
> 
> It's not that bad ... at this point:
> 
> _cvs_modified_entries () {
>   if _cvs_loadstat; then
>       local expl match linedir realdir pat
>       match=()
>       : ${PREFIX:#(#b)(*/)(*)}
>       linedir="$match[1]"
>       realdir=${(e)~linedir}
> 
> Instead of using ${(e)~linedir) to get the realdir, tack /CVS on the end
> and use _path_files to generate realdir, then lop off the CVS again and
> proceed.
> 
> Of course "use _path_files to generate realdir" means editing _path_files
> to accept the `-A array' option and pass it through to compadd ... and
> fixing all the _cvs functions to handle an array of realdirs rather than
> a single one.

_path_files uses -A itself.  This could get really messy.

So, as a incomplete, but simple solution I'd still favour sticking a
call to _files somewhere.


Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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