From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 618 invoked by alias); 8 Oct 2011 10:58:35 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29817 Received: (qmail 15364 invoked from network); 8 Oct 2011 10:58:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.161.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=hCbqnditzLv7hbTSKa1Ei9ir7DiAhsuYX9Ftq819iVs=; b=ujyTwje0Vhbh7yYQAlm0P0/OP54r+uL3te1b8nvcVb0bZdlDfogwUEB3a7DzkOsstJ g8k2fWlOTqwlUluxQWHlgOwfOUBSCyIbhC8glsSsn7tpf1PVd8PSUflAOSlI1xkJCCV4 AT6kyMzwFY3n2sXyqlTt74vx+6EoPZ6nUxfK8= MIME-Version: 1.0 Date: Sat, 8 Oct 2011 12:58:26 +0200 Message-ID: Subject: Disable special-dirs for cdpath From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 Hi, % . ---- local directory ../ .git/ ---- directory in cdpath ../ This annoyed me a bit, and it doesn't seem possible to use 'path-directories' in the look up for the special-dirs style, it always uses "paths" as the tag. I came up with this, but it hardly seems like the right way to do it, --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -180,7 +180,8 @@ else skips='((.|..)/)##' fi -zstyle -s ":completion:${curcontext}:paths" special-dirs sdirs +zstyle -s ":completion:${curcontext}:${mopts[$((1+${mopts[(i)-J]}))]}" special-dirs sdirs || \ + zstyle -s ":completion:${curcontext}:paths" special-dirs sdirs zstyle -t ":completion:${curcontext}:paths" list-suffixes && listsfx=yes Any other ideas? Is the "real" tag already accessible here in some other parameter? -- Mikael Magnusson