zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Funky list-colors
Date: Thu, 05 Dec 2019 18:40:48 +0100	[thread overview]
Message-ID: <51240-1575567648.316014@K4cq.pPN8.u6QO> (raw)
In-Reply-To: <CAKc7PVDzpYUhR7TdoitmiHqvWVH20qGtruA6MhAsYqf2-8Kr5A@mail.gmail.com>

Sebastian Gniazdowski wrote:
> This seems a less powerful than the hacky printable-LS_COLORS idea,
> which I overall like. From experience, such things often result in
> unpredictable and highly surprising + valuable solutions. Maybe it's
> worth opening this door? In a most optimistic scenario, the code would
> have to do a few isprints???

Such things also often result in weird bugs and broken feature
combinations if they haven't been thought through properly.

In this particular case, list-colors can take a form with just an
equals sign (`=') followed by a pattern. The pattern is matched
against the entire display string to specify colouring. But all the
work related to ensuring column alignment has already been done at
this stage. If you add extra visible characters, you may need to
change the alignment but it is too late for that.

As Bart mentioned there are already ways to define the exact form
of completion display strings. So this wouldn't even add anything
other than perhaps an easier configuration hook. If anyone has
specific ideas for cases where extra decoration on matches would
be useful, then patches to the relevant completion functions would
be welcome.

Oliver

  parent reply	other threads:[~2019-12-05 17:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-29 12:21 zsugabubus
2019-11-29 16:06 ` Bart Schaefer
2019-11-29 17:23   ` zsugabubus
2019-11-29 19:22     ` Bart Schaefer
2019-11-29 20:37       ` zsugabubus
2019-12-04 23:27         ` Bart Schaefer
2019-12-05  7:44           ` Oliver Kiddle
2019-12-05 11:07           ` Sebastian Gniazdowski
2019-12-05 11:19             ` Roman Perepelitsa
2019-12-05 17:40             ` Oliver Kiddle [this message]
2019-12-07 20:58           ` zsugabubus
2019-12-07 21:42             ` 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=51240-1575567648.316014@K4cq.pPN8.u6QO \
    --to=okiddle@yahoo.co.uk \
    --cc=sgniazdowski@gmail.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).