Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Improve Mosh completion
- X-seq: zsh-workers 42167
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Andrei Shevchuk <andrei@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: PATCH: Improve Mosh completion
- Date: Mon, 25 Dec 2017 20:06:49 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ch0n3D RRNpXiGNNIDNlZf4hXvaMm6wsOokkQ8iViPjY=; b=dXuWzDZl35v1GmK972fElh ffK68g8Kn39aZyZa1EzWqqSdCPD9COGyRHu4gHyaiHYhc9aVYXio8TNChtSg4V/9 Mlol3mBkWRr1aePLSUaWvml26rc7mKjyxmKpMyvShdA3DgsmTeWSMqP4P4H8cesK 988f7CSMPDyyoM0IL0Bw6+uhRRlKF3Gq06K5VIqFRGz7yzbKqwptve5BCU225L7C /kTW+cV0Yix9Qr+0eHT+rMIHkGA0XQfYSQQzsHxZcZv0xgxS4T3wUZJIqA9UWtXv nVawn7UUP+bNiXyluuC5we2MM59fX5pavPnye9ihaZLmzpEWebGq+r3uqSXyvr0Q ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ch0n3D RRNpXiGNNIDNlZf4hXvaMm6wsOokkQ8iViPjY=; b=Yeh6XAOhQQi5Mwllw41Vnq CA6gJVJoL+fZGDxf8YejqLe2hCbiYxuFcjKrk8Uhxd1aEdNMlO1T6jPbuUrPAJVs LwYYHa2apUemu8kaT1bL/sRTymRC0Kfa26cDCllNGYO3Fa+my1X/84xyySK0ywl8 YJdk6kiHBd5bH/09R2IxEk7CDdhkihXUtaJTPg5GcoDb0td8iDbZW98PbBnONkXK sl4hhCHcZ8hCJRUZgOR9wqaW9iGKjyaJ9nu7y3lGsGFNcGSa/qoXVhwvtkwOaUO8 XXdqrZJAbEZXXnChXciPBIaXAAUxdwlRYnYtH4k8okDrMnDq8jJp7444bb/zmk8w ==
- In-reply-to: <1510274104.17218.0@smtp.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1510274104.17218.0@smtp.gmail.com>
Thanks for the ping on github.
Andrei Shevchuk wrote on Fri, 10 Nov 2017 03:35 +0300:
> This adds ~/.ssh/config based completion support (_ssh_hosts and
> _ssh_users functions and userhost state handling taken without
> modifications from ssh completion file),
Sorry, no. https://en.wikipedia.org/wiki/Don%27t_repeat_yourself
If you really need to call those two functions, break them out of _ssh into
separate files:
% head -n1 Completion/*/Type/_ssh_files
#autoload
%
Or — depending on mosh's syntax — it might be better to simply invoke _ssh
(directly or via _normal or one of its friends).
> existing code was just wrapped into _mosh function without modifications
> (except userhost state handling mentioned above).
Please don't mix whitespace and functional changes: that makes the diff harder
to review.
> +++ b/Completion/Unix/Command/_mosh
> @@ -1,26 +1,84 @@
> + '--port=[specify server-side port range]:port:_sequence -n 2 -s \:
> _ports' \
As you can see, your MUA mangled the patch (hard line break). You can avoid
this by sending patches as attachments named *.txt.
Let's continue the discussion on list; there are more eyes here.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author