Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion issues
- X-seq: zsh-workers 10416
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Completion issues
- Date: Mon, 3 Apr 2000 15:11:45 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Sun, 2 Apr 2000 03:16:33 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Apr 1, 9:26pm, Peter Stephenson wrote:
> ...
>
> } Second, if I understood correctly, the default behaviour for completion is
> } to ignore ignored completions completely. Thus the behaviour of $fignore
> } has changed.
>
> Unless I'm getting the wrong version of a function, it appears that this
> is special-cased by _path_files so that $fignore has not changed -- but
> if you use the ignored-patterns style instead, then ignored completions
> really are ignored, and you need to add the _ignored completer to get
> the old behavior back.
No, $fignore is used in the same way as ignored-patterns (and ignored
only by _ignored).
So, this changes the default for the completer style.
Bye
Sven
Index: Completion/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_main_complete,v
retrieving revision 1.2
diff -u -r1.2 _main_complete
--- Completion/Core/_main_complete 2000/04/01 20:43:43 1.2
+++ Completion/Core/_main_complete 2000/04/03 13:07:22
@@ -62,7 +62,7 @@
_completers=( "$@" )
else
zstyle -a ":completion:${curcontext}:" completer _completers ||
- _completers=( _complete )
+ _completers=( _complete _ignored )
fi
# And now just call the completer functions defined.
Index: Doc/Zsh/compsys.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/compsys.yo,v
retrieving revision 1.3
diff -u -r1.3 compsys.yo
--- Doc/Zsh/compsys.yo 2000/04/03 12:56:31 1.3
+++ Doc/Zsh/compsys.yo 2000/04/03 13:07:25
@@ -841,8 +841,10 @@
zstyle ':completion:incremental:*' completer _complete _correct
zstyle ':completion:predict:*' completer _complete)
-The default value for this style is tt(_complete), i.e. normally only
-completion will be done.
+The default value for this style is tt(_complete _ignored),
+i.e. normally only completion will be done, first using the
+tt(ignored-patterns) style and the tt($fignore) array and then without
+ignoring matches because of these.
)
kindex(completions, completion style)
item(tt(completions))(
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author