zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Do fake-always and ignored-patterns work together as documented?
Date: Sun, 29 Nov 2015 12:21:48 -0800	[thread overview]
Message-ID: <151129122148.ZM24977@torch.brasslantern.com> (raw)

Can someone give me a working example of the fake-always style combined
with ignored-patterns as described in the documentation?

fake-always
     This works identically to the fake style except that the
     ignored-patterns style is not applied to it.  This makes it
     possible to override a set of matches completely by setting the
     ignored patterns to `*'.

But:

torch% zstyle :completion::complete:foo:\* fake-always FOO BAR BAZ
torch% zstyle :completion::complete:foo:\* ignored-patterns \*    
torch% foo <TAB>
Completing file
aclocal.m4       config.h.in      Functions/       NEWS           
aczsh.m4         config.sub*      INSTALL          README         
autom4te.cache/  configure*       install-sh*      Scripts/       
BAR              configure.ac     LICENCE          Src/           
BAZ              CVS/             MACHINES         stamp-h        
ChangeLog        Doc/             Makefile.in      stamp-h.in     
Completion/      Etc/             META-FAQ         StartupFiles/  
Config/          FEATURES         Misc/            Test/          
config.guess*    FOO              mkinstalldirs*   Util/          

This seems to be because the default value for the completer style is
"_complete _ignored" but I would have expected to need _next_tags to
get the ignored files once the fake ones had been added by _complete.
I delete the fake-always style the ignored-patterns style works that
way on its own.


             reply	other threads:[~2015-11-29 20:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-29 20:21 Bart Schaefer [this message]
2015-11-29 21:16 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=151129122148.ZM24977@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).