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 39837
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: "fake" style requires at least one real match?
- Date: Fri, 4 Nov 2016 22:02:58 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=b6+2BWI38uK7er0TawBxav1rwr/S64rMJVLLcKUDI1w=; b=TFGYR2Nf6XIoiKvtjDKjqnhUkSV2L2HWtUfP6PFYY5UhbchPDsgN/0yYlN5cWYjhoM MuZQBcHxRn85ej2U/y4fwAQilMhpnHZoisX6e7hqSTP5y+iq/2ppjkIq8RUKeMfUuUCF IsO8cFOM9tMsQLCr4IKravmUtFGbI7atvziBwzO5ofXlynP23EpJswgoOiRQQn86Wpf3 0xQInsHjL1yNVASfB6D+q8CeTng40K4/ofxF4c0e33TtkIMK2mHVfupvgc4FZy3sOc4Y AJU3Jojl9fu3SWzanAyRelnix7rZSw0bdLRikg9njQGPv8LnxCpbDnvEt1VYu7+6eOe/ hTsQ==
- In-reply-to: <161104204801.ZM17816@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> <24199.1478268003@hydra.kiddle.eu> <161104204801.ZM17816@torch.brasslantern.com>
One more example -- if I change this to the fake-always style with an
ignored-patterns of '*' as recommended in the manual --
setopt cdablevars
mydirs=( mydir1 mydir2 )
zstyle -e ':completion::complete:cd:*:named-directories-mine' \
fake-always 'reply=($mydirs)'
zstyle ':completion::complete:cd:*:named-directories-mine' \
ignored-patterns '*'
zstyle ':completion::complete:cd:*' tag-order \
'named-directories:-mine:extra\ directories'
-- then it ignores tag-order entirely:
torch% hash -d move=$PWD
torch% cd m
Completing extra directories
mydir1 mydir2
Completing user
mach mail mailnull mysql
Completing named directory
move
But if allow a single other named directory to pass:
torch% zstyle ':completion::complete:cd:*:named-directories-mine' \
ignored-patterns '*~?o*'
torch% cd m
Completing extra directories
move mydir1 mydir2
What?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author