help / color / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-users@zsh.org>
Subject: Re: problem with context specification
Date: Tue, 14 Jan 2020 18:05:11 +0000
Message-ID: <1579025111.4404.61.camel@samsung.com> (raw)
In-Reply-To: <1d1c62f2-7d74-4b6c-a08e-78dfe7378fc6@www.fastmail.com>

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_.
> (My patch said that explicitly.)

This can certainly be a right pain.  If we'd thought about it at the
time, we might have made the convention that separators are /s and we
can turn on per-path matching for this case (actually not as trivial as it
might sound because currently that's heavily specific to managing file
paths, so we'd need an extra zstyle-specific loop in any case).

I guess there might still be room for an option that does this in some
clever way, though it'll only be useful if it can do it with colons.

Still not foolproof, though, as if extra segments ever appear you
can end up with a failed match for no good reason.  So I'm not
sure how advisable it would be to unleash this on users.

This can be filed under "probably won't ever actually happen".


  parent reply index

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20200113164758eucas1p17ea364450eec705f49edaa8fb69fa65b@eucas1p1.samsung.com>
2020-01-13 16:46 ` Pier Paolo Grassi
2020-01-13 16:56   ` Peter Stephenson
2020-01-13 17:46     ` Mikael Magnusson
2020-01-14 11:52       ` Peter Stephenson
2020-01-13 17:53     ` Bart Schaefer
2020-01-13 17:06   ` Daniel Shahaf
2020-01-13 17:41     ` [PATCH] docs: Add an example of setting and querying zstyles (was: Re: problem with context specification) Daniel Shahaf
2020-01-14 15:59     ` problem with context specification Pier Paolo Grassi
2020-01-14 16:45       ` Daniel Shahaf
2020-01-14 17:55         ` Pier Paolo Grassi
2020-01-14 18:05         ` Peter Stephenson [this message]
2020-01-14 18:34           ` Bart Schaefer
2020-01-14 18:50             ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1579025111.4404.61.camel@samsung.com \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git