zsh-workers
 help / color / mirror / code / Atom feed
* [patch] _hg: completion for 'hg bookmarks'
@ 2015-09-24 14:23 Christoph Mathys
  2015-09-24 16:05 ` Daniel Shahaf
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Mathys @ 2015-09-24 14:23 UTC (permalink / raw)
  To: zsh-workers

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 "$@"


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-26  0:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-24 14:23 [patch] _hg: completion for 'hg bookmarks' Christoph Mathys
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

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).