zsh-workers
 help / color / mirror / code / Atom feed
From: Marlon Richert <marlon.richert@gmail.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Feature request: italic style in region_highlight
Date: Thu, 20 May 2021 16:33:57 +0300	[thread overview]
Message-ID: <CAHLkEDs5xV9f-iv6WAmjnYp2FP6wZm5AL_0+FwmJwWwAJjYrZw@mail.gmail.com> (raw)
In-Reply-To: <20200103202807.cxocci634aksqwot@tarpaulin.shahaf.local2>

Did this discussion and the one in workers/47491 ever result in
anything? Is it still on the table?

On Fri, Jan 3, 2020 at 10:28 PM Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
>
> Bart Schaefer wrote on Thu, Jan 02, 2020 at 18:30:17 -0800:
> > On Thu, Jan 2, 2020 at 1:06 PM Roman Perepelitsa
> > <roman.perepelitsa@gmail.com> wrote:
> > >
> > > > %O/%o (for "oblique") would be available. I realise that an oblique font
> > > > is not strictly the same as italic.
> > >
> > > Perfect timing. I wanted to ask which alternative letter to use as %a
> > > is taken by something (watch, perhaps?). %O/%o sounds good.
> >
> > Agree.  (However, the only use of %a I could find is in the zstyle
> > formats for VCS, which didn't seem to conflict.
>
> In vcs_info one can always double the percent sign if needed.  Well, %a for one
> is used in both patch-format and actionformats, so it's possible it'd have to be
> doubled twice if someone wanted to use %a in its prompt meaning in patch-format.
>
> > > With %A{...} we would have to
> > > explain how it interacts with the other sequences. E.g., does %u
> > > cancel %A{4}?
> >
> > I think if we created %A{4} (which BTW I would recommend requiring at
> > least two digits, e.g. %A{04}) then we would have to document the
> > existing escapes as being shorthands for the corresponding %A forms,
> > so yes, %u would cancel %A{04}.
>
> Why would we create either %A{4} or %A{04}?  The API to script writers should
> use symbolic names; the API between us and the terminal should use terminfo
> rather than hardcoded escape sequences.  If anything, something like «%X{foo}»
> that does the equivalent of «%{`tput foo`%}» might be worthwhile?  We could
> still add an %Y/%y pair of escapes for italics but they'd be syntactic sugar
> for %X{sitm} and %X{ritm} respectively.
>
> (X, Y, and y are metasyntactic variables for the actual letters we'd use.)


  reply	other threads:[~2021-05-20 13:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30  1:29 Sebastian Gniazdowski
2019-12-30 10:16 ` Roman Perepelitsa
2019-12-30 16:07   ` Bart Schaefer
2019-12-30 16:26     ` Roman Perepelitsa
2020-01-01  0:07       ` Bart Schaefer
2020-01-02 19:18         ` Oliver Kiddle
2020-01-02 19:45           ` Roman Perepelitsa
2020-01-03  2:30             ` Bart Schaefer
2020-01-03 20:28               ` Daniel Shahaf
2021-05-20 13:33                 ` Marlon Richert [this message]
2021-05-25 16:38                   ` Oliver Kiddle
2021-05-25 20:50                     ` Marlon Richert
2021-05-25 20:56                       ` Bart Schaefer
2021-05-27  8:04                         ` Marlon Richert
2021-05-25 17:28                 ` Bart Schaefer
2021-05-25 22:43                   ` Oliver Kiddle

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=CAHLkEDs5xV9f-iv6WAmjnYp2FP6wZm5AL_0+FwmJwWwAJjYrZw@mail.gmail.com \
    --to=marlon.richert@gmail.com \
    --cc=d.s@daniel.shahaf.name \
    --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).