From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 953 invoked from network); 2 May 2002 07:34:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 May 2002 07:34:37 -0000 Received: (qmail 4463 invoked by alias); 2 May 2002 07:34:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4912 Received: (qmail 4445 invoked from network); 2 May 2002 07:34:03 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15568.60356.391072.268403@wischnow.berkom.de> Date: Thu, 2 May 2002 09:33:24 +0200 To: zsh-users@sunsite.dk Subject: Re: New zsh user, I have a few questions. In-Reply-To: <1020427052445.ZM20529@candle.brasslantern.com> References: <3CCA0B34.1000300@theblackmoor.net> <1020427052445.ZM20529@candle.brasslantern.com> X-Mailer: VM 6.95 under 21.5 (patch 3) "asparagus" XEmacs Lucid Just a little addition: Bart Schaefer wrote: > On Apr 26, 10:21pm, Walter Francis wrote: > > ... > > } I've found that "cd " just lists way too many directories to be very > } useful when I have it set as I saw suggested somewhere as (.. ~).. Is it > } possible to list pwd's subdirectories, then the cdpath directories, such as > } tab one shows pwd's subdirs, tab again shows cdpath? > > You can do almost anything if you try hard enough, but the short answer > is that there's no built-in mechanism for making different numbers of > TABs show different subsets of the possible completions. However, you > *can* cause the listing to be segregated into subsets and control the > order in which those subsets are listed, or whether they are listed at > all. This is all done with the `zstyle' command (again assuming you use > `compinit'). > > You want the `group-name' and `group-order' styles, something like this: > > zstyle ':completion:*' group-name '' # Special case, see doc example > zstyle ':completion::complete:cd::' group-order \ > local-directories path-directories > > See also the `tag-order' style. Yes, tag-order should be interesting here (there even is an example for it for completion after cd in Peter's guide). And then have a look at the _next_tags widget (normally bound to ^Xn) to see how to switch from one group of matches to the next. Bye Sven -- Sven Wischnowsky wischnow@berkom.de