* Do fake-always and ignored-patterns work together as documented?
@ 2015-11-29 20:21 Bart Schaefer
2015-11-29 21:16 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2015-11-29 20:21 UTC (permalink / raw)
To: zsh-users
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Do fake-always and ignored-patterns work together as documented?
2015-11-29 20:21 Do fake-always and ignored-patterns work together as documented? Bart Schaefer
@ 2015-11-29 21:16 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2015-11-29 21:16 UTC (permalink / raw)
To: zsh-users
On Nov 29, 12:21pm, Bart Schaefer wrote:
}
} Can someone give me a working example of the fake-always style combined
} with ignored-patterns as described in the documentation?
Also, the -S and -r options passed to _files don't make it through to
the call to compadd that handles fake and fake-always, so using
fake-always with assign-list to supply default values for MODULE_PATH
does not auto-insert/auto-remove the ":" between elements, instead
inserting a space which has to be manually deleted to complete the
next element.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-29 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-29 20:21 Do fake-always and ignored-patterns work together as documented? Bart Schaefer
2015-11-29 21:16 ` Bart Schaefer
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).