From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29703 invoked from network); 13 Feb 2008 04:03:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Feb 2008 04:03:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 32580 invoked from network); 13 Feb 2008 04:03:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Feb 2008 04:03:51 -0000 Received: (qmail 5772 invoked by alias); 13 Feb 2008 04:03:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24549 Received: (qmail 5759 invoked from network); 13 Feb 2008 04:03:46 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 13 Feb 2008 04:03:46 -0000 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by bifrost.dotsrc.org (Postfix) with ESMTP id 4614D80482A1 for ; Wed, 13 Feb 2008 05:03:42 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JW50062ASLYMXY1@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 12 Feb 2008 22:03:35 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m1D43XlD020702 for ; Tue, 12 Feb 2008 20:03:34 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m1D43XnN020701 for zsh-workers@sunsite.dk; Tue, 12 Feb 2008 20:03:33 -0800 Date: Tue, 12 Feb 2008 20:03:33 -0800 From: Bart Schaefer Subject: Re: Bug#465284: Expansion of completion choices expanding to the same command don't complete In-reply-to: <20080213023034.GA3545@scowler.net> To: zsh-workers@sunsite.dk Message-id: <080212200333.ZM20698@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable References: <20080211164936.GA7200@bee.dooz.org> <20080213023034.GA3545@scowler.net> Comments: In reply to Clint Adams "Re: Bug#465284: Expansion of completion choices expanding to the same command don't complete" (Feb 12, 9:30pm) X-Virus-Scanned: ClamAV 0.91.2/5794/Tue Feb 12 21:49:27 2008 on bifrost X-Virus-Status: Clean [Trimmed distribution to zsh-workers; Clint please forward as you like.] On Feb 12, 9:30pm, Clint Adams wrote: } Subject: Re: Bug#465284: Expansion of completion choices expanding to the= =20 } } On Mon, Feb 11, 2008 at 05:49:36PM +0100, Lo=EFc Minier wrote: } > I get the expanded command without a final space: } > debcommit } > hitting tab a second time reveals that zsh sees two choices: } > % debcommit } > external command } > debcommit -- commit changes to a package } > alias } > debcommit } >=20 } > I would like it if zsh would only consider the highest priority } > completion choice for commands as obviously I can't invoke the } > debcommit binary but only the debcommit alias here. Or it would be } > enough if zsh would append a space if all choices expans to the same } > thing. }=20 } This sounds very familiar. This can be controlled with styles. If you tell zsh to put external commands and aliases in separate completion groups, then it doesn't attempt to resolve duplications across groups. If you let it put all the completions together, then it de-dups them. You can't, at present, have it both ways.