From: Mikael Magnusson <mikachu@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Prompt percent completion for truncations
Date: Mon, 21 Mar 2022 22:15:59 +0100 [thread overview]
Message-ID: <CAHYJk3RZXYcs4vxtMvdBMJ42Li475XUtvKrZ1+a92QQSDdme1A@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7br3PV0vKrCrvcCzH-ZnG86unrpNWicqAK5o2CPq-sbrQ@mail.gmail.com>
On 3/21/22, Bart Schaefer <schaefer@brasslantern.com> wrote:
> This is cute but unhelpful:
>
> [ -- truncation from who knows where
>
> Furthermore, completion after that doesn't work right:
>
> % PS2=%[
> parameter
> (list of parameter names elided)
> % PS2=%\[
> (literally nothing: no suggestions, no beep)
>
> If we're going to include %[ in the completions, it should continue
> with %[< or %[> ... but my vote would be to just remove that because
> it's a deprecated form of %< and %> respectively.
I have a feeling this is my fault, but I think the statute of
limitations has expired for this particular crime. (zw/30466)
I'm pretty sure I was unaware of the intricacies of $comp_state[quote]
back then, and did most of my testing inside single quotes.
> There is also this:
> % PS2=%\<
> replacement string
> % PS2=%\[\<
> number
>
> The latter is wrong, of course; both of these should behave the same.
--
Mikael Magnusson
next prev parent reply other threads:[~2022-03-21 22:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 18:32 Bart Schaefer
2022-03-21 21:15 ` Mikael Magnusson [this message]
2022-03-21 21:42 ` 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=CAHYJk3RZXYcs4vxtMvdBMJ42Li475XUtvKrZ1+a92QQSDdme1A@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=schaefer@brasslantern.com \
--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).