From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2229 invoked from network); 5 Feb 2002 17:20:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Feb 2002 17:20:27 -0000 Received: (qmail 10481 invoked by alias); 5 Feb 2002 17:19:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4653 Received: (qmail 10430 invoked from network); 5 Feb 2002 17:19:56 -0000 Message-ID: <3C601433.7070601@davh.dk> Date: Tue, 05 Feb 2002 18:19:47 +0100 From: Dennis Haney User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020205 X-Accept-Language: da, en-us MIME-Version: 1.0 To: zsh-users Subject: Re: cd ..? References: <20020129102017.E3A633FC1B@pluto.sonofthor.dk> <15446.30464.872842.207355@wischnow.berkom.de> <3C572BEB.2030001@davh.dk> <020129171248.ZM11938@candle.brasslantern.com> Content-Type: multipart/alternative; boundary="------------080403000208060007090503" --------------080403000208060007090503 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Bart Schaefer wrote: >On Jan 30, 12:10am, Dennis Haney wrote: > >>Subject: Re: cd ..? >> >>Sven Wischnowsky wrote: >> >>> zstyle ':completion:*' special-dirs .. >>> >>>to make `..' be considered a possible match (and hence it will get the >>>slash appended). >>> >>Is there a way to make this work properly with setopt GLOB_DOTS? >> > >Just make the style more specific: > > zstyle ':completion:*:(cd|chdir|pushd|popd):*' special-dirs .. > How is that going to help me? > >You might also check the documentation for the ignore-parents style. > ignore-parent works the wrong way... It want to ignore '..' when it is a stupid choice. eg. mkdir Z cd Z/[tab] should NOT complete to 'cd Z/../' (unless CHASE_DOTS is on and 'cd Z/..' will be different from 'cd .') likewise... mkdir Z mkdir Z/Y cd Z/[tab] should NOT give me '..' as a choice, but just complete to 'cd Z/Y' (unless CHASE_DOTS is on and 'cd Z/..' will be different from 'cd .') -- Dennis use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl"); --------------080403000208060007090503 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Bart Schaefer wrote:
On Jan 30, 12:10am, Dennis Haney wrote:
Subject: Re: cd ..<tab>?

Sven Wischnowsky wrote:
 zstyle ':completion:*' special-dirs ..

to make `..' be considered a possible match (and hence it will get the
slash appended).

Is there a way to make this work properly with setopt GLOB_DOTS?

Just make the style more specific:

zstyle ':completion:*:(cd|chdir|pushd|popd):*' special-dirs ..
How is that going to help me?

You might also check the documentation for the ignore-parents style.
ignore-parent works the wrong way...

It want to ignore '..' when it is a stupid choice.
eg.
mkdir Z
cd Z/[tab]
should NOT complete to 'cd Z/../'
(unless CHASE_DOTS is on and 'cd Z/..' will be different from 'cd .')

likewise...
mkdir Z
mkdir Z/Y
cd Z/[tab]
should NOT give me '..' as a choice, but just complete to 'cd Z/Y'
(unless CHASE_DOTS is on and 'cd Z/..' will be different from 'cd .')

-- 
Dennis
use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl");

--------------080403000208060007090503--