Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion for cd
- X-seq: zsh-users 7326
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Completion for cd
- Date: Sun, 4 Apr 2004 23:50:46 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <1040405000443.ZM22220@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <040401100439.ZM13083@xxxxxxxxxxxxxxxxxxxxxxx> <20040401204424.GI994@xxxxxxxxxxxxx> <1040402043837.ZM13655@xxxxxxxxxxxxxxxxxxxxxxx> <20040402065247.GB862@xxxxxxxxxxxxx> <040402081155.ZM14332@xxxxxxxxxxxxxxxxxxxxxxx> <20040404144311.GA1858@xxxxxxxxxxxxx> <20040404151433.GA788@xxxxxxxxxxx> <20040404152653.GC1858@xxxxxxxxxxxxx> <20040404163912.GA1479@xxxxxxxxxxx> <1040405000443.ZM22220@xxxxxxxxxxxxxxxxxxxxxxx>
> Isn't this a job for the ignore-parents zstyle? I don't recall if I've
> seen bug #240624, so maybe I'm unaware of some detail.
The specific complaint is that if you cd to a named directory, then try
to complete an argument to cd when CDABLE_VARS is set, the named
directory which is the same as $PWD will be offered for completion
(in addition to usernames which are invalid arguments at this point;
this facet is bug #240618).
> zstyle :completion::complete:cd:: ignore-parents pwd
This works if I do something like
% cd ../<TAB>
$PWD will be excluded.
But if I do
% cd
% zstyle :completion::complete:cd:: ignore-parents pwd
% cdpath=(..)
% cd c<TAB>
or
% cd
% zstyle :completion::complete:cd:: ignore-parents pwd
% setopt cdablevars
% cd c<TAB>
"clint" will be completed in either case. I believe that the latter
behavior illustrates Thorsten's complaint.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author