zsh-users
 help / color / mirror / Atom feed
* file-list and list-colors
@ 2020-04-29  8:29 Pier Paolo Grassi
  2020-04-30 16:45 ` dana
  0 siblings, 1 reply; 2+ messages in thread
From: Pier Paolo Grassi @ 2020-04-29  8:29 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

Hello, I have these two lines in my .zshrc:

zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' file-list true

Since I have added the file-list style the results are not colored anymore.
Is it possibile to make those styles work together?

thanks

Pier Paolo Grassi
linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217
founder: https://www.meetup.com/it-IT/Machine-Learning-TO

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: file-list and list-colors
  2020-04-29  8:29 file-list and list-colors Pier Paolo Grassi
@ 2020-04-30 16:45 ` dana
  0 siblings, 0 replies; 2+ messages in thread
From: dana @ 2020-04-30 16:45 UTC (permalink / raw)
  To: Pier Paolo Grassi; +Cc: Zsh-Users List

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-30 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  8:29 file-list and list-colors Pier Paolo Grassi
2020-04-30 16:45 ` dana

zsh-users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-users zsh-users/ http://inbox.vuxu.org/zsh-users \
		zsh-users@zsh.org
	public-inbox-index zsh-users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git