From: Ray Andrews <rayandrews@eastlink.ca>
To: Vincent Lefevre <vincent@vinc17.net>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: completion
Date: Wed, 07 Jan 2015 10:10:30 -0800 [thread overview]
Message-ID: <54AD7696.20001@eastlink.ca> (raw)
In-Reply-To: <20150107150109.GA14088@ypig.lip.ens-lyon.fr>
[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]
On 01/07/2015 07:01 AM, Vincent Lefevre wrote:
> On 2014-12-11 11:34:20 -0800, Ray Andrews wrote:
>> Anyway, knowing that the star replaces the colons cracks it open.
> This is a bit old, but... When can an asterisk replace a colon?
> For instance, in:
> ...
> which have one or several missing colons. This is from the
> zshcompsys(1) man page.
>
> If an asterisk can match anything, there may be an ambiguity on
> which field some given word will match.
>
I'm glad I'm not the only guy who is puzzled by that. I dunno
completion sorta works, and some people seem to understand
it, so I can't say much, but IMHO having a optional field
separator is madness.
first-name : last-name : job : fav. hockey team : city : vacation spot
Ray :*: Carpenter : Montreal
Ray : Andrews :*: Vancouver :*: Maui
:*: Andrews :*: Maui
... a bit hard to parse, but all 'true' if separators can be omitted.
Being just a mortal, this seems more tractable to me:
:Ray::Carpenter:Montreal::Maui:
I'm Ray, and Montreal is my hockey team
::Andrews:::Vancouver:Maui:
I live in Vancouver
::Andrews:::::
My last name is Andrews
:::Carpenter:::Maui:
I'm a carpenter who vacations in Maui
:Montreal::
Error! Not enough colons, there must be seven.
next parent reply other threads:[~2015-01-07 18:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5488D414.6010300@eastlink.ca>
[not found] ` <30453.1418258082@thecus.kiddle.eu>
[not found] ` <5488F0AC.2040901@eastlink.ca>
[not found] ` <141210214454.ZM12261@torch.brasslantern.com>
[not found] ` <5489C8F4.8030703@eastlink.ca>
[not found] ` <141211092824.ZM13349@torch.brasslantern.com>
[not found] ` <5489F1BC.5000900@eastlink.ca>
[not found] ` <20150107150109.GA14088@ypig.lip.ens-lyon.fr>
2015-01-07 18:10 ` Ray Andrews [this message]
2015-01-17 0:19 completion Ray Andrews
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54AD7696.20001@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=vincent@vinc17.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).