Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "fake" style requires at least one real match?
- X-seq: zsh-workers 39833
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: "fake" style requires at least one real match?
- Date: Fri, 04 Nov 2016 15:00:03 +0100
- 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==
- In-reply-to: <161103173955.ZM13768@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <161103173955.ZM13768@torch.brasslantern.com>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author