From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20806 invoked from network); 23 Jun 2007 21:41:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jun 2007 21:41:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 9667 invoked from network); 23 Jun 2007 21:41:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jun 2007 21:41:40 -0000 Received: (qmail 11940 invoked by alias); 23 Jun 2007 21:41:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23588 Received: (qmail 11931 invoked from network); 23 Jun 2007 21:41:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Jun 2007 21:41:36 -0000 Received: (qmail 9328 invoked from network); 23 Jun 2007 21:41:36 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 23 Jun 2007 21:41:31 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id C89E25C3C6; Sat, 23 Jun 2007 17:41:30 -0400 (EDT) Date: Sat, 23 Jun 2007 17:41:30 -0400 From: Clint Adams To: zsh workers Subject: Re: PATCH: yet another _git update Message-ID: <20070623214130.GA16281@scowler.net> Mail-Followup-To: zsh workers References: <20070623100226.GB6305@fsst.voodoo.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070623100226.GB6305@fsst.voodoo.lan> User-Agent: Mutt/1.5.13 (2006-08-11) On Sat, Jun 23, 2007 at 12:02:26PM +0200, Frank Terbeck wrote: > a) To provide a nice looking list, we currently use a hardcoded list > of 'command:description' pairs. However this does not guarantee, > that all possible subcommands available on a system will be taken > into account. > To activate a), do: > zstyle ':completion::*:git:*' list_allcmds true What about putting the descriptions into an assoc array, and matching those up with the output of git help -a instead? Then you could have the best of both potential style options by default.