zsh-users
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: file-list and list-colors
Date: Thu, 30 Apr 2020 11:45:45 -0500	[thread overview]
Message-ID: <3E029A00-9EFA-4FE5-A5EE-3AD05B8E58EB@dana.is> (raw)
In-Reply-To: <CAP+y1xAM8o5HMUaJPo3qZO1U+crjoVW1VHMrpRy5o3OJ-tNZ6g@mail.gmail.com>

On 29 Apr 2020, at 03:29, Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
> Since I have added the file-list style the results are not colored anymore.
> Is it possibile to make those styles work together?

I don't think so. file-list uses `compadd -l`, which doesn't apply list-colors
styles based on file names/types (only those based on display-string
patterns). It looks like it'd be easy to change that, but maybe there are
other functions designed with the current behaviour in mind? Even if it was
changed, since there's no way to communicate to the list-colors code what part
of the display string is the file name, it can only colour the entire line,
which might look a bit weird

dana


      reply	other threads:[~2020-04-30 16:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29  8:29 Pier Paolo Grassi
2020-04-30 16:45 ` dana [this message]

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=3E029A00-9EFA-4FE5-A5EE-3AD05B8E58EB@dana.is \
    --to=dana@dana.is \
    --cc=pierpaolog@gmail.com \
    --cc=zsh-users@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).