zsh-workers
 help / color / mirror / code / Atom feed
* Skipping certain completers -- how?
@ 2001-06-14 17:23 Bart Schaefer
  2001-06-15  7:07 ` Sven Wischnowsky
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2001-06-14 17:23 UTC (permalink / raw)
  To: zsh-workers

I have:

zstyle ':completion:*' completer \
    _oldlist _expand _complete _match _ignored _approximate _prefix

I'd like to use only a subset of that list in certain instances, but the
completer style is looked up with context ':completion:::::' so it's not
possible to use the context to restrict the list.

A specific example:  When completing the cvs subcommand name (the first
word after `cvs' itself) I'd rather that _expand, _ignored, and _prefix
were NOT called.

My guess is that this can only be accomplished with a "control function"
similar to _prefix except operating sort of in reverse -- that is, you
make that function your only completer, then give the "real" completers
in a nother style that's looked up by the control function, which then
calls them.

We also have the avoid-completer style that could be used to give a list
of completers to skip in such a control function.

Can anyone think of anything else that would be involved, or of a better
way to accomplish this?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-15  9:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-14 17:23 Skipping certain completers -- how? Bart Schaefer
2001-06-15  7:07 ` Sven Wischnowsky
2001-06-15  9:39   ` 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).