Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prompt percent completion for truncations
- X-seq: zsh-workers 49872
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Prompt percent completion for truncations
- Date: Mon, 21 Mar 2022 22:15:59 +0100
- Archived-at: <https://zsh.org/workers/49872>
- In-reply-to: <CAH+w=7br3PV0vKrCrvcCzH-ZnG86unrpNWicqAK5o2CPq-sbrQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7br3PV0vKrCrvcCzH-ZnG86unrpNWicqAK5o2CPq-sbrQ@mail.gmail.com>
On 3/21/22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author