From: Christoph Mathys <eraserix@gmail.com>
To: zsh-workers@zsh.org
Subject: [patch] _hg: completion for 'hg bookmarks'
Date: Thu, 24 Sep 2015 16:23:51 +0200 [thread overview]
Message-ID: <CALqGcGrNrnNUQim4QbvhGyy+9h07JNBg3ixOzZiZ4JKUR5jVMg@mail.gmail.com> (raw)
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 "$@"
next reply other threads:[~2015-09-24 14:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 14:23 Christoph Mathys [this message]
2015-09-24 16:05 ` Daniel Shahaf
2015-09-24 16:29 ` Bart Schaefer
2015-09-24 22:17 ` Daniel Shahaf
2015-09-25 7:14 ` Christoph Mathys
2015-09-25 23:18 ` Daniel Shahaf
2015-09-26 0:23 ` Daniel Shahaf
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=CALqGcGrNrnNUQim4QbvhGyy+9h07JNBg3ixOzZiZ4JKUR5jVMg@mail.gmail.com \
--to=eraserix@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).