Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH v2] prompt: support generic non-visible regions
- X-seq: zsh-workers 50483
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH v2] prompt: support generic non-visible regions
- Date: Wed, 17 Aug 2022 15:48:02 -0700
- Archived-at: <https://zsh.org/workers/50483>
- In-reply-to: <CAH+w=7ZrUfQV6QRcfjCzJkdYM8bTgZkR3p0W4cWxJZEUOSS8CQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20220811230901.471640-1-felipe.contreras@gmail.com> <CAH+w=7b2pn6=eXHxRRB8GR-yi6iH+fL8t0SO7Kka415O4g5wxQ@mail.gmail.com> <CAMP44s36=YoiT7Lt-_j6h-fc47z_RS2CexCR++PCZ7p1CXxfEA@mail.gmail.com> <CAH+w=7Y+RSQn-zVzNDPTJV13ZddnGxnwBC=P5E0RFEm4M+fPnw@mail.gmail.com> <CAMP44s0F-wz79s+ba3zA0BqOmobPP+jXbrrLNGse1mdwyLu3Kg@mail.gmail.com> <CAH+w=7ZrUfQV6QRcfjCzJkdYM8bTgZkR3p0W4cWxJZEUOSS8CQ@mail.gmail.com>
On Wed, Aug 17, 2022 at 3:31 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Mon, Aug 15, 2022 at 2:37 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > Do we want something like "\001foo\002%\001bar%\002"?
>
> More on this below.
Oops, forgot to come back to that.
If nesting isn't a concern, then %{\001%} would do it, just change the
tests in the patch to be
(bv->dontcount == 0 && *bv->fm == 0x01)
I don't think there's any reason to treat control characters as non-zero-width?
(Note I'm hoping for input from others than Filipe and I on whether
nesting is important.)
If nesting is a problem, then I suppose yes, we need %\001 like we
have %% and %). Other suggestions welcome.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author