From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14251 invoked by alias); 21 Apr 2013 03:03:25 -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: 31303 Received: (qmail 17627 invoked from network); 21 Apr 2013 03:03:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=Zec0V7qRqzdwvR6cT57yV2lQeVrxG6Lsg9Ba8uOlj6g=; b=fNgkSjwW77UuvRGdxFVOafN3Fr7mNWa1LtMjeT19wDrBMvA3dH6TPOOPTunnrQf8hc VKzk5edpooSPEJ4ioZQ9bsnh7IYpnVa/aU0BFhED5CrXrOlQfXgAl/t7hhozdV2D4op8 XzeHpDrRAv3Uv8WM8VdZoIljHBFkj8169WevWYDzzPwMWS8MXBY6JmKbj6TWVqLD+0fs SxwOq06+ysFwACJue3nTwNoRVpeRGe67HTDb1PSarL7SP78hxPpV3sqDZx1PLVd4FW8A MfYJzpFGk4CiRL8rUPx9SkrNDXWKjSVhSzIDK7U6+4r37PqECYQ0UI4fRNuahOQaWm69 +k6w== MIME-Version: 1.0 X-Received: by 10.112.154.98 with SMTP id vn2mr9299485lbb.8.1366513385520; Sat, 20 Apr 2013 20:03:05 -0700 (PDT) Date: Sat, 20 Apr 2013 22:03:05 -0500 Message-ID: Subject: Alignment issue with multiple describes From: Felipe Contreras To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Hi, I'm trying to write a completion script for many multiple subcommands, and I want to group them in different tags, which works more or less fine, however, I've noticed a problem when using more than one describe: the completion's description is aligned, but only to the same description, even if they are not grouped. For example, the script below throws this: --- extraone -- extra command one one -- command one two -- command two zbiggertoshowthealignissue -- extra command two --- If the tags are group together, the problem is less noticeable, but as soon as you enter the menu, the alignment changes again (to a proper one). You can even see this with zsh's official git completion. Any ideas? #compdef foobar _foobar () { local -a commands extra commands=('one:command one' 'two:command two') _describe -t commands 'commands' commands extra=('extraone:extra command one' 'zbiggertoshowthealignissue:extra command two') _describe -t extra 'extra' extra } -- Felipe Contreras