From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9503 invoked from network); 24 Sep 2008 15:46:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Sep 2008 15:46:44 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 49733 invoked from network); 24 Sep 2008 15:46:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Sep 2008 15:46:30 -0000 Received: (qmail 22572 invoked by alias); 24 Sep 2008 15:46:21 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25741 Received: (qmail 22562 invoked from network); 24 Sep 2008 15:46:20 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 24 Sep 2008 15:46:20 -0000 Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.187]) by bifrost.dotsrc.org (Postfix) with ESMTP id 27C0680307AB for ; Wed, 24 Sep 2008 17:46:16 +0200 (CEST) Received: by rn-out-0910.google.com with SMTP id m36so1202471rnd.14 for ; Wed, 24 Sep 2008 08:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=1BQMwsFEvOQYxkOo7esaTN0q6mG5WL3TG0+2Rk8ZRhs=; b=SKLhVo1VVSHasL+cXV9DWLFDzkyiD1OeNi05ur4HdTa0tJrk5saBSWpwsUelK4UIYT IKFIVuylGsM8JDXeAOe2jULO7EYY3LG5xkPJMYwDN1f3UYWWLaCn4pGGQcoO/t/j/1Xf yW/96Ibij9fOhdJdkjYT7VJre8UY/lieRm8Os= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=hUxxgqY5I7Jr60RKATFygU/SA+ODfzTKYBNsXhlEyHKUVHnmEwb/HeO6CoUg4RggMu 3dcXXyBoRoVoWNxxGHRfdog9z7N632rI4F14jyPF5JJJcLHEV3GO0NUyuHLnHEfzUmWO c0iWsLVhnHb4iM2r7VpRshb+P+xKy80YeZIPc= Received: by 10.100.133.2 with SMTP id g2mr5931942and.113.1222271175403; Wed, 24 Sep 2008 08:46:15 -0700 (PDT) Received: by 10.100.43.19 with HTTP; Wed, 24 Sep 2008 08:46:15 -0700 (PDT) Message-ID: <2d460de70809240846i3c4f69f0w1e95e1ce367b1528@mail.gmail.com> Date: Wed, 24 Sep 2008 17:46:15 +0200 From: "Richard Hartmann" To: "Zsh hackers list" Subject: New completion function: _zsh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: ClamAV 0.92.1/8324/Wed Sep 24 12:55:43 2008 on bifrost X-Virus-Status: Clean Hi all, I realized there is no completion function for zsh. I am working on one which will at least show the command line parameters, but I want to get some feedback on some questions, first. 1) What is the correct place to look up all parameters? zshoptions lists a lot of options, but definitely not all of them. For example, none of the long options like --version appear. 2) What is the preferred style for completions? I can think of these: -0[CORRECT: Try to correct the spelling of commands] -0[Try to correct the spelling of commands (CORRECT)] -0[Try to correct the spelling of commands] 3) Is doing this by hand a good idea or should it be auto-generated from the docs? Richard