From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6767 invoked from network); 23 Jun 2006 23:52:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jun 2006 23:52:05 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 68914 invoked from network); 23 Jun 2006 23:51:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jun 2006 23:51:57 -0000 Received: (qmail 12152 invoked by alias); 23 Jun 2006 23:51:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10424 Received: (qmail 12142 invoked from network); 23 Jun 2006 23:51:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Jun 2006 23:51:49 -0000 Received: (qmail 67961 invoked from network); 23 Jun 2006 23:51:49 -0000 Received: from ms-1.rz.rwth-aachen.de (HELO ms-dienst.rz.rwth-aachen.de) (134.130.3.130) by a.mx.sunsite.dk with SMTP; 23 Jun 2006 23:51:48 -0000 Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0J1C00FBV7MBHH@ms-dienst.rz.rwth-aachen.de> for zsh-users@sunsite.dk; Sat, 24 Jun 2006 01:51:47 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Sat, 24 Jun 2006 01:51:46 +0200 (MEST) Received: from fsst.voodoo.lan (u-7-237.vpn.RWTH-Aachen.DE [137.226.103.237]) by relay.rwth-aachen.de (8.13.7/8.13.3/1) with ESMTP id k5NNpk6o026490 for ; Sat, 24 Jun 2006 01:51:46 +0200 (MEST) Received: from hawk by fsst.voodoo.lan with local (Exim 4.62) (envelope-from ) id 1FtvQz-0000Lo-Ro for zsh-users@sunsite.dk; Sat, 24 Jun 2006 01:51:33 +0200 Date: Sat, 24 Jun 2006 01:51:33 +0200 From: Frank Terbeck Subject: Re: completion for man In-reply-to: <20060623231954.GA30718@spiegl.de> To: zsh-users@sunsite.dk Mail-followup-to: zsh-users@sunsite.dk Message-id: <20060623235133.GE6528@fsst.voodoo.lan> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline Operating-System: Linux 2.6.16.16 i686 User-Agent: Mutt/1.5.11+cvs20060403 References: <20060623231954.GA30718@spiegl.de> Andy Spiegl : > Recently I heard/read that there is a new wonderful completion function for > man with support sections. But my zsh (v4.3.2) doesn't do it and always > just completes the command names: > > condor:~>man > zsh: do you wish to see all 13618 possibilities (6810 lines)? > > condor:~>man 8 > zsh: do you wish to see all 13618 possibilities (6810 lines)? > > Is there maybe some configuration option I have to set? Hi Andy, Starting from 'zsh -f' you need the following: [snip] zmodload zsh/complist autoload -U compinit && compinit zstyle ':completion:*' menu select zstyle ':completion:*:*:man:*' menu yes zstyle ':completion:*' group-name '' zstyle ':completion:*:manuals' separate-sections true zstyle ':completion:*:manuals.*' insert-sections true zstyle ':completion:*:descriptions' format "- %d -" [snap] You can even do: zstyle ':completion:*:manuals.(^1*)' insert-sections true ...to add the section number for all sections but section number one. Regards, Frank