Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problem with context specification



On Tue, Jan 14, 2020 at 10:06 AM Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
>
> On Tue, 2020-01-14 at 16:45 +0000, Daniel Shahaf wrote:
> > > I assume the stars are for matching every possible value for that segment,
> > No.  An asterisk matches zero or more characters, _including colons_.
>
> This can certainly be a right pain.

It's important to remember that the colons are strictly a completion
system convention -- they have nothing to do with the semantics of
zstyle itself, which can use any sort of context patterns and style
names.  That's why completion styles explicitly begin with the fixed
string ":completion:".  I even spent a while experimenting with using
it to construct an object hierarchy for a message-passing programming
style (too slow to be more than a curiosity).



Messages sorted by: Reverse Date, Date, Thread, Author