From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17371 invoked from network); 13 Mar 2005 08:55:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Mar 2005 08:55:13 -0000 Received: (qmail 58991 invoked from network); 13 Mar 2005 08:55:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Mar 2005 08:55:05 -0000 Received: (qmail 3787 invoked by alias); 13 Mar 2005 08:54:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8594 Received: (qmail 3769 invoked from network); 13 Mar 2005 08:54:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Mar 2005 08:54:55 -0000 Received: (qmail 57846 invoked from network); 13 Mar 2005 08:54:55 -0000 Received: from b8e4b.b.pppool.de (HELO solfire) (213.7.142.75) by a.mx.sunsite.dk with SMTP; 13 Mar 2005 08:54:50 -0000 Received: from [127.0.0.1] (helo=localhost) by solfire with esmtp (Exim 4.42) id 1DAOs7-0005mH-16; Sun, 13 Mar 2005 09:54:53 +0100 Date: Sun, 13 Mar 2005 09:54:50 +0100 (CET) Message-Id: <20050313.095450.74752161.Meino.Cramer@gmx.de> To: schaefer@brasslantern.com Cc: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <1050313045036.ZM12713@candle.brasslantern.com> References: <1050311051417.ZM9377@candle.brasslantern.com> <20050311.193734.78721293.Meino.Cramer@gmx.de> <1050313045036.ZM12713@candle.brasslantern.com> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: schaefer@brasslantern.com, zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: Re: TAB-expansion problems Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1+cvs (built Sat, 28 Aug 2004 13:10:40 +0200) X-SA-Exim-Scanned: Yes (on solfire) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-1.7 required=6.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_WEB autolearn=no version=3.0.2 X-Spam-Hits: -1.7 From: Bart Schaefer Subject: Re: TAB-expansion problems Date: Sun, 13 Mar 2005 04:50:36 +0000 Hi Bart, hi list members! :) I see, I have to learn A LOT more about zsh! Ok, I "killed" cdpath and now my does not report "everything ever seen" anymore. I included the first zstyle in my .$HOME/zshrc and got after entering cd the additonal information, saying: Completing local directory which is exactly what I want to have (currently, for the first... ;) An addtional I have: Suppose your are here: $HOME/ThisDir/AnotherDir and in ./AnotherDir there is another dir called "WhereIWantToBe" Now I enter cd Does zsh think that there is no match since I didn't enter cd Whe thus preferring to show me possibilities for completions from the path-directories OR does zsh "see" the one and only directoy "WhereIWantToBe" and gives me cd WhereIWantToBe right after hitting ? Thanks a lot for all the friendly help ! Keep hacking! Meino > On Mar 11, 7:37pm, Meino Christian Cramer wrote: > } > } Suppose I am at my $HOME/tmp/. directory. Furthermore there is only > } ONE additional directory called "TheLonelyOne" there. And I want to > } to change into that directory. As a lazy person now I would type on > } the commandline > } > } cd > } > } and want to get > } > } cd TheLonelyOne > } > } then instead all worldwide reachable directories as a suggestion. > > As Tim Kruse has said, the likelyhood here is that zsh is suggesting > subdirectories of the directories listed in your cdpath. If you add > the following style you'll get better information: > > zstyle ':completion:*' format '%SCompleting %U%d%u%s' > > After you've tried that, so you've seen what's going on, you can then > add this style: > > zstyle :completion::complete:cd:: tag-order \ > local-directories path-directories > > The tag-order style controls which sets of matches are displayed. In > the example above, local-directories are preferred, and only when no > local directories are found are path-directories (those found along > your cdpath) shown. The default is to display all sets of matches at > the same time. > > } From my current point of knowledge I didn't neither know the correct > } naming for that behaviour > > It's "completion". >