Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: What exactly does it mean to complete inside $'...' anyway?
- X-seq: zsh-workers 33460
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: What exactly does it mean to complete inside $'...' anyway?
- Date: Mon, 13 Oct 2014 14:21:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1413202872; bh=ruPVB/0T+AWt+g2iamI1Z8LeMbBkbKzztEhHTi9Nk9E=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=tYTATGGfRGdCG+Rsgc1sEbosuBrc/MhlMyPVp+Dbsrv3l/46mW0i6r0WEYL9tjQWviFmJt387HUpMiN/M1QvR/8g+qP0AwLL1sNeqWZn8fLjo8hy5+BrP7MLm+pRlvMvDmIGqs3vWWuoFbV4p+a8002/c9ZeRyvtLU5Kubp5UWE=
- In-reply-to: <141012134936.ZM4543@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <141012134936.ZM4543@torch.brasslantern.com>
Bart wrote:
>
> % : $'<TAB>x
>
> for any particular values of "x", which might be e.g. $'\07' or $'\M-x'.
> Same goes for
The intent of existing zsh functionality (aside from bugs) seems to be
that quoting is ignored for the purposes of matching. So if you have
$'\x41', it will look for a completion candidate (filename or whatever)
that matches uppercase A. The x character forming part of the suffix
rather than the prefix doesn't really make much difference other than
the expected position of completed characters. For $'...' style quotes
I'm not sure anything else would be especially useful: either filtering
matches that would need special quoting or completing sequences like
\M-x.
When inserting a completion match, zsh seems to use the quoting style
from the first character. The ideal would be to preserve existing
quoting as far as possible.
By default a \ is removed when completing directly after it which is
especially useless. (I've largely worked around this my binding \ to a
custom widget.)
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author