From 818cba3dbfb01030680237d248caaf2e9c3e5ac3 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 15 Jun 2000 09:06:21 +0000 Subject: make _files try each pattern only once (and stop after `*') (11915) --- Doc/Zsh/compsys.yo | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Doc/Zsh/compsys.yo') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index ef0b28a3a..c2342850a 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -1033,6 +1033,10 @@ achieve this, one could do: example(zstyle ':completion:*' file-patterns \ '%p:globbed-files *(-/):directories' '*:all-files') +This works even for contexts in which all files would be completed, +because tt(_files) will not try a pattern more than once and it stops +when the pattern `tt(*)' was tried. + Note also that during the execution of completion functions, the tt(EXTENDED_GLOB) option is in effect, so the characters `tt(#)', `tt(~)' and `tt(^)' have special meanings in the patterns. -- cgit 1.4.1