From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: What exactly does it mean to complete inside $'...' anyway?
Date: Mon, 13 Oct 2014 14:21:10 +0200 [thread overview]
Message-ID: <4934.1413202870@thecus.kiddle.eu> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2014-10-13 12:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-12 20:49 Bart Schaefer
2014-10-13 9:25 ` Peter Stephenson
2014-10-13 12:21 ` Oliver Kiddle [this message]
2014-10-13 17:12 ` Bart Schaefer
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=4934.1413202870@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--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).