Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
curtag (Re: can't run _email-mutt)
- X-seq: zsh-workers 21361
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: curtag (Re: can't run _email-mutt)
- Date: Sun, 19 Jun 2005 17:09:13 +0000
- In-reply-to: <22509.1118076149@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050527141638.GA9644@xxxxxxxxxxxxxxxxxxxxxxx> <7779.1117444705@xxxxxxxxxxxxxxxxxxxxxxx> <20050530135757.GA12204@xxxxxxxxxxxxxxxxxxxxxxx> <13199.1117464233@xxxxxxxxxxxxxxxxxxxxxxx> <20050602123718.GA21218@xxxxxxxxxxxxxxxxxxxxxxx> <22509.1118076149@xxxxxxxxxxxxxxxxxxxxxxx>
Just got a chance to look at this ...
On Jun 6, 6:42pm, Oliver Kiddle wrote:
}
} Has anyone got any ideas on how to narrow the context for the plugin
} tag-order. Currently, if you want to specify a list of plugins as a
} global setting, you need a context like ':completion:*'. That's not
} nice but the best alternative is listing commands:
} ':completion:*:(mailx|Mail|mutt|mush|ali|netscape):*'
One possibility would be for _email_addresses to call
_tags -C email-addresses email-$plugins
which would make the context look like
:completion:*:*:*:email-addresses:*
} Ideally, _tags should allow me to put 'email-addresses' in as a tag. It
} should perhaps use $curtag.
I'm not sure how $curtag would apply in this case, because it's not set
until _requested or _wanted calls _all_labels from inside the _tags loop?
Or are we talking about nested _tags loops here, which is already a bit
of a sticky wicket?
It's entirely possible that there's some subtlety I'm missing.
On a more general note, though, it would appear that $curtag is rather
under-utilized. By a quick grep I count about 15 functions that use both
_tags and zstyle without reference to $curtag. _email_addresses is the
only one that seems to use it as it was intended.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author