From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24301 invoked from network); 2 Oct 2002 07:51:01 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Oct 2002 07:51:01 -0000 Received: (qmail 14396 invoked by alias); 2 Oct 2002 07:50:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5408 Received: (qmail 14358 invoked from network); 2 Oct 2002 07:50:26 -0000 Date: Wed, 2 Oct 2002 10:50:23 +0300 From: Jonas Juselius To: zsh-users@sunsite.dk Cc: Bart Schaefer Subject: Re: zstyle problems Message-ID: <20021002075023.GA802@chem.helsinki.fi> Mail-Followup-To: zsh-users@sunsite.dk, Bart Schaefer References: <20021001113453.GA3095@chem.helsinki.fi> <1021002031516.ZM14546@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1021002031516.ZM14546@candle.brasslantern.com> User-Agent: Mutt/1.4i Thanks, but I still think this is a bit confusing. Typing 'cd' and then pressing ^Xh says 'tags in context :completion::complete:cd::', which made me think that this was the actual context... What would be the correct way of defining different (individual) completions for 'cd' and other commands? On Wed, Oct 02, 2002 at 03:15:16AM +0000, Bart Schaefer wrote: > The individual command context is not yet established at the time the > completer style is looked up; more specifically, the completer style is > always checked with the context ":completion:::::" (except in specialty > widgets like insert-and-predict). The precise context including the > command name (or contexts like "-tilde-") is actually set up *by* the > completers. > Ok, I tried this but I didn't see any difference from the standard completion... Could this have something to do with menu completion and sorting? If so, how can I disable sorting? The problem is that I have more than 10 named dirs, and more than 100 users, and 98% of the time I want to complete for my named dirs. > } I also tried to change tag-order for the [-tilde-] completer so that it > } would complete named directories before users, but that failed as > } well... > > Hmm. The following works for me: > > zstyle ':completion::complete:-tilde-:*' tag-order \ > named-directories users directory-stack > Best regards, .jonas. -- while (!world->perfect) { whine (); } [ PGP public key: http://www.iki.fi/jonas/pubkey.asc ]