Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _ssh (scp)
- X-seq: zsh-workers 16563
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: _ssh (scp)
- Date: Tue, 5 Feb 2002 10:24:20 +0000 (GMT)
- Cc: david@xxxxxxxxxx
- In-reply-to: <20020204175927.GA12977@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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