From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23173 invoked by alias); 24 Sep 2015 14:23:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36609 Received: (qmail 29601 invoked from network); 24 Sep 2015 14:23:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== MIME-Version: 1.0 X-Received: by 10.112.130.39 with SMTP id ob7mr804741lbb.66.1443104631460; Thu, 24 Sep 2015 07:23:51 -0700 (PDT) Date: Thu, 24 Sep 2015 16:23:51 +0200 Message-ID: Subject: [patch] _hg: completion for 'hg bookmarks' From: Christoph Mathys To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 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 "$@"