Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fwd: adb pull and push remote completion
- X-seq: zsh-workers 40608
- From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Fwd: adb pull and push remote completion
- Date: Tue, 21 Feb 2017 18:32:53 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
- Cc: Mailing-list zsh-workers <zsh-workers@xxxxxxx>, "zsh-workers@xxxxxxxxxxxxxx" <zsh-workers@xxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IxIv4usLPGKb9dZGR+BSHzXh8smXq8aqOLCw2zELu84=; b=Yc0JLv4MwqxMzZvv+SC+16kTtTG9glBGZLTydwjtrZ/d5qRQ0KCLxh1HjzdvBL6fAc RQkbVzSnkgfV8KXGSmLL2f/ir06elmLcAeJFfGCNENTqyPAHt/gEdGtSVX8kEF6qeU8u 24U8S/Hv0x3a6Ujm20QbBl19JiWgHHIW1h9PNakF8TK7+E/0XS7KteAj92U02YjkZaXi /WEIsTODSrIQUGCsLSD5dQjgPkVZoW/0M8WO1H6jl0QuO5TLSNtgLnLMhacA8Wb+Z0ar LMuVO5jT76d5X1D8hqvMlnIVPCCvhJlodTt4huCT6tzp3YtvAhX2OUMKvn4mcWBcDOi6 4odQ==
- In-reply-to: <26668.1487697790@thecus.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA++fsGGqSeshsuHinzJaKc3jRGooeLY1ow1Rcmf3Dw3vNREFpw@mail.gmail.com> <CA+mcLN77BVXV26R+NavQfDX8yCjV1CGjzKQx7LZd-E9ZYSE5rw@mail.gmail.com> <CA+mcLN5QJVy3sSacM-qu22negjTqN4LXA+tW+iX0_gGxBBpq1Q@mail.gmail.com> <26668.1487697790@thecus.kiddle.eu>
Hi Oliver,
2017-02-21 18:23 GMT+01:00 Oliver Kiddle <okiddle@xxxxxxxxxxx>:
> Julien Nicoulaud wrote:
> >
> > A while ago there was a compdef for adb in https://github.com/zsh-
> > users/zsh-completions, but we deleted it as there was one in zsh:
> > https://github.com/zsh-users/zsh-completions/blob/
> > e70e7f8941d7437a161e3e4bb93f06e9c712c4a4/src/_adb
> >
> > I'm not sure which one is the better one, they probably need merging, but
> > anyway the one in zsh-completions could complete adb push/pull.
> > I hope this can be useful.
>
> A cursory glance at the adb completion in zsh would indicate that, while
> there is plenty of scope for improvement, it is at least attempting to
> complete files on the remote device for push/pull. Without the requisite
> hardware, I can't test it and last time I touched that function I managed
> to accidentally break it so I'm reluctant to change it. Does it not work
> for you?
>
I can't test either, I don't have an Android device anymore.
>
> More generally, whether or not the function in zsh is better or worse,
> it is the one that was contributed to zsh. Personally I'm wary of ever
> picking up functions from github projects and merging their features,
> especially where they have an explicit licence other than the zsh
> licence. In this case it appears that you are the author of the old
> function on github so you'd not have to worry. It might be possible to
> use the _remote_files helper when completing the files.
>
Agreed, I just wanted to give a pointer in case it can be useful.
If anyone wants to work on merging the compdefs the license is not a
problem.
>
> Oliver
>
Julien
Messages sorted by:
Reverse Date,
Date,
Thread,
Author