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

Re: PATCH: _ssh (scp)



Clint wrote:

>      _wanted files expl 'remote files' \
> -        compadd $(ssh -a -x ${words[CURRENT]%:*} echo
> ${words[CURRENT]#*:}\*)
> +      compadd ${${remfiles:#*/}/[*=@](#e)/}
> +
> +    _wanted dirs expl 'remote directories' \
> +      compadd -S/ ${${(M)remfiles:#*/}/\\/(#e)/}

It would be more consistent with normal file completion to add the
files and directories together with the same tag and description.
I'd also be tempted to setup separate display strings so that the * for
executables, @ for symlinks etc are preserved in the file list.

Is it possible to have colour coding work in this sort of case? When I
did _mtools I briefly looked but couldn't see how it could be done.

Oliver

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



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