Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _diff3: Enhance positional argument descriptions (thanks, Oliver).
- X-seq: zsh-workers 43331
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _diff3: Enhance positional argument descriptions (thanks, Oliver).
- Date: Fri, 24 Aug 2018 15:43:29 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=tkx+ji1MgpDCJbFe5 m00Cwfw1vjGaPdImryp4t2dKGw=; b=nAYPMShTC6xmbxDtHZvV/8Yw4slQtfsts PwOPyJubarfdFHJ4qGZHKVawdjkJ6iDWzUATb6rEpFfMD0+YMHA4O8ZpoSVNC9Md 6kNMDvYGy6uOvw8RoBDUBat1nzPWya+8Sqf/LpTwIfQ4aPx1YxclRzQHGlZmvnb3 uGQOAIR9bHleElasYDp8lXLuhHXZNJOsheD99FJGx9vzwq017aNB4fUZLZkXaccv du5nV1mPbYgButd4T+Mc7p1Ny/Af1jmNI29KNBAbkfAkNZwCkdpvTfVNKaUXdQe2 0uXYb90AQigyKPR2Qgc/cz+350XwEav8KWdXBAqmy/HfENgJKV2MQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=tkx+ji1MgpDCJbFe5 m00Cwfw1vjGaPdImryp4t2dKGw=; b=H5LUQSxCaBg3QekIAS05rWYmQ3GT5uRPU 3+psP/EVgdLW0PJ7hYdnpBghI6opstI+ThzKbIVZolrYVx9PRrH8Qwc7S4PNSu3U Yfju1Uh+km6t/Rb/xp2KqGNxsIJUbXyZB8gh+uA8TOguLkF9akYPdLN4/akXEEtu uEv6HMZE5/vQzTsBO0ujTHTEMhfO3Zn21BdGo0CQkVKHL3hcz0gF+7bafaTmLYM+ p0FakkPft2Jj5OCOo8aifR8BUHrvtjXap0S5t03ei90xmBeVDvw6hK5xo0oDfyoY 0Npe8asHlqICYX2bweenRqowxtowPf/d+Wo0NALI8j16o2/vQxyAQ==
- 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
---
Completion/Unix/Command/_diff3 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Completion/Unix/Command/_diff3 b/Completion/Unix/Command/_diff3
index 81e274d05..524507ce0 100644
--- a/Completion/Unix/Command/_diff3
+++ b/Completion/Unix/Command/_diff3
@@ -39,8 +39,8 @@ else
fi
_arguments -s -S $args \
- '1:updated file:_files' \
- '2:original file:_files' \
- '3:updated file:_files' \
+ '1: : _wanted files expl "first updated file (${${(As.:.)opt_args[-L]}[1]:-mine})" _files' \
+ '2: : _wanted files expl "original file (${${(As.:.)opt_args[-L]}[2]:-old})" _files' \
+ '3: : _wanted files expl "second updated file (${${(As.:.)opt_args[-L]}[3]:-their})" _files' \
+ '(ed)' $ed
Messages sorted by:
Reverse Date,
Date,
Thread,
Author