Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[patch] _hg: completion for 'hg bookmarks'
- X-seq: zsh-workers 36609
- From: Christoph Mathys <eraserix@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [patch] _hg: completion for 'hg bookmarks'
- Date: Thu, 24 Sep 2015 16:23:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WT6FplYp4R4PmouqC9HLnWOZcsNWrM1wLv+Y2QMeVKk=; b=q4s3rEoAbtZHZoKgpd/cqm2lO38rYZbxDeD6DilPXGOraedoCaAA9n9F3U51Zs+RB+ YkIdrceVRQYB+YmceMjyFKD30BQMIW+h15TF76jWFSmsWJXeNEIZO62Dng/GcYursAcH YTIjSaAudWrpozQsyfz2pvBr0wuB1A9yT8hcC3fkNLfVwtByBmQrJ0rO/5FjKkjraxan YKtqHI1UzJH1+zCuG2/ElR+D/sc3RE4jQiCr7Tg7Aj6uPBqU4R2wuS0YZxqI5IQOqmaV lwn2EyrzTUaCcOXKwcbzCjiLDsNn2eU2Frz/t845M93+oL79uhYRSA1qtgIGXngMU3FE BLGA==
- 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
Hi there
Below is a patch to add completion support for the "hg bookmarks" command.
thg,
Christoph
PS Please CC on reply, I'm not subscribed to the list.
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index e7c21b9..edd7f0d 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -962,4 +962,14 @@ _hg_cmd_strip() {
':revision:_hg_tags'
}
+_hg_cmd_bookmarks() {
+ _arguments -s -w : $_hg_global_opts \
+ - '(--force -f)'{-f,--force}'[force]' \
+ '(--rev -r)'{-r+,--rev}'[set bookmark at revision]:revision:_hg_tags' \
+ '(--delete -d)'{-d,--delete}'[delete a given bookmark]' \
+ '(--rename -m)'{-m+,--rename}'[rename given
bookmark]:bookmark:_hg_bookmarks_internal' \
+ ':bookmark:_hg_bookmarks_internal' \
+ - '(--inactive -i)'{-i,--inactive}'[mark a bookmark inactive]'
+}
+
_hg "$@"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author