zsh-users
 help / color / mirror / code / Atom feed
* Using the same completion function for various commands
@ 2010-12-06 14:12 Martin Richter
  2010-12-06 14:54 ` Mikael Magnusson
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Richter @ 2010-12-06 14:12 UTC (permalink / raw)
  To: zsh-users

Hello,

I'm searching the documentation for quite a while now but can't figure out how 
to do the following:

I wrote a completion function which resides somewhere in $fpath, let's call it 
_foo. But I don't want to have it applied on the command foo only. I want to use 
it on all commands matching a certain pattern, e.g. foo_1, foo_2, ... (or foo_* 
for short). Is it possible to define a context for this (like 
:completion::complete:foo_*::) and use zstyle to bind this completer to it? 
Unfortunately I couldn't figure out how. 
  zstyle "*" completer _<TAB>
only tells me about some built-ins.

Thank you very much and please forgive me in case I oversaw something obvious in 
the documentation.

Martin


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

end of thread, other threads:[~2010-12-07 11:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-06 14:12 Using the same completion function for various commands Martin Richter
2010-12-06 14:54 ` Mikael Magnusson
2010-12-06 15:01   ` Jérémie Roquet
2010-12-06 15:03     ` Mikael Magnusson
2010-12-06 15:11       ` Peter Stephenson
2010-12-06 15:18         ` Mikael Magnusson
2010-12-06 16:10           ` Peter Stephenson
2010-12-06 16:21             ` Peter Stephenson
2010-12-06 16:44               ` Bart Schaefer
2010-12-06 17:08                 ` Peter Stephenson
2010-12-06 19:39           ` Oliver Kiddle
2010-12-07 11:52             ` Peter Stephenson
2010-12-06 15:23         ` Martin Richter
2010-12-06 15:31         ` Jérémie Roquet

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).