zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Julien Nicoulaud <julien.nicoulaud@gmail.com>
Cc: Mailing-list zsh-workers <zsh-workers@zsh.org>
Subject: Re: Fwd: adb pull and push remote completion
Date: Tue, 21 Feb 2017 18:23:10 +0100	[thread overview]
Message-ID: <26668.1487697790@thecus.kiddle.eu> (raw)
In-Reply-To: <CA+mcLN5QJVy3sSacM-qu22negjTqN4LXA+tW+iX0_gGxBBpq1Q@mail.gmail.com>

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?

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.

Oliver


  reply	other threads:[~2017-02-21 17:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25  9:41 Dov Grobgeld
     [not found] ` <CA+mcLN77BVXV26R+NavQfDX8yCjV1CGjzKQx7LZd-E9ZYSE5rw@mail.gmail.com>
2017-02-21 13:20   ` Fwd: " Julien Nicoulaud
2017-02-21 17:23     ` Oliver Kiddle [this message]
2017-02-21 17:32       ` Julien Nicoulaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26668.1487697790@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=julien.nicoulaud@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).