From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13528 invoked by alias); 4 Nov 2016 14:05:58 -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: 39833 Received: (qmail 1367 invoked from network); 4 Nov 2016 14:05:58 -0000 X-Qmail-Scanner-Diagnostics: from nm18-vm5.bullet.mail.ir2.yahoo.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.82.96.229):SA:0(0.0/5.0):. Processed in 0.412238 secs); 04 Nov 2016 14:05:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: okiddle@yahoo.co.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.mail.yahoo.com designates 212.82.96.229 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1478268003; bh=rYQmIOOS2B+5X3IvW5xXo38RFV7zQThLA9tNXi6OpOE=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=lmWjsWPjNw2GbG/Q49AJCTZ+dkwRQnTRYYiQa+3hmNfRkEjAgx9Vrs+JeZDrXdNtpO/cj5Xs9Bsx7ESi1Qzt3AD9tZ0xkecmznJfY0EgNfW6qRFfcz9jxJLpyJazIxkYDNRPyf4zn1jNqDmkLLKxfTvsKCniblByki6mMKc0cDtmaFJHw4ANqueQIfFSkoyjrUZQzHdksdZatzVnVWAaesjZGyJ9PIlQdKXa1axVAK7K8vZLKF1tdLhbqokTkQAfVce2KkS1br8K012Eh7C/xJY+agZcck/c2o4rec5L2EeY44vLDIDj77JQXpL+z3/l5an2f8ILzPe/Fnkc1sxeWQ== X-Yahoo-Newman-Id: 787022.63830.bm@smtp149.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: i_fCj6UVM1mxPmQjAIknuIDCI5qXJoifLh45W5bxfwDfQso wJwWGjVbMZbS7OumhqTcdl2yeHhScj1blL3nz5SXeRiORtp5kmJahh.JOb26 ZUxMjM9GF0EcUHS5fMskWave6hxtm9US8Qsfv150kRU3ov1irlCdRBZc3rir P4_9ruIEv4ABwZC1DxOsT.nKkYEVFpM1W7yxT_nP50X3SZ6.a4oB8D5rCoLg 80SZypZmEMERMo9cEI1iKblvahN9K48AqY.D9eKbeg44QLAzf0o5D8uPa3DJ Ef02hAUB_gtx1e2ZiriP4YZNKfFG5gLWH6Q4wCPh7Pi8D7E.bSXkgtsuRCzp 84KV5TMrJBr19Ab6f9ssyA8qxwidicwhDoupUXlGk._tVebx76StLqAs0F9L VswJ5eCF6IytOWb751rc0g8_5TZLibF.TsIbjRL5cDeC4MEkL.KS2fGNhdJX Fha5EGpXVzL7SjOH5udmn.ZyjeDheH2Jd9NjMD_t96lqBvwFUqtqBt.ErB5L wxiTUmWnKxMFWyU7vDGuJfWQFY1fOTMjb.aOrmxu1QYU- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <161103173955.ZM13768@torch.brasslantern.com> From: Oliver Kiddle References: <161103173955.ZM13768@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: "fake" style requires at least one real match? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24198.1478268003.1@hydra.kiddle.eu> Date: Fri, 04 Nov 2016 15:00:03 +0100 Message-ID: <24199.1478268003@hydra.kiddle.eu> Bart wrote: > This is essentially the same Q-and-A as from users/10988 almost exactly > ten years ago. The difference is that the solution in that message no > longer works. > > zstyle -e ':completion::complete:cd:*:named-directories-mine' \ > ignored-patterns 'reply=("(${(qkj.|.)nameddirs})")' In my testing, the (q) flag in there is preventing ignored-patterns from working because the | separators get quoted. My guess is that (q) was added as a hurried after-thought at the time of users/10988 to allow for special characters in a named directory name. Either that, or it was tested with only one named directory. ${(kj.|.)nameddirs:q} will work instead. Also seems odd to restrict the style to the complete completer. > Also, an aside, _cd doesn't offer named-directories unless there is a > prefix of the word. I don't recall if that's a change from the past or > not. This is down to the explicit -n "$PREFIX" condition. It was there in _cd from 3.1.7 so is not a change. Oliver