zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: zsh-users@sunsite.dk
Subject: Re: Coloring completions
Date: Thu, 15 Jul 2004 12:50:54 +0200	[thread overview]
Message-ID: <20040715105054.GC10481@DervishD> (raw)
In-Reply-To: <Pine.LNX.4.60.0407142019180.28477@toltec.zanshin.com>

    Hi Bart :)

    Thanks for answering :)

 * Bart Schaefer <schaefer@brasslantern.com> dixit:
> >     I'm playing with compsys, and I don't understand what happens
> > with coloring.
> [...]
> > when I hit 'TAB' (which currently is bound to 'expand-or-complete'), the 
> > completions appear colored, and that's ok because I have zsh/complist 
> [...]
> > when I hit '^O', depending on the first word only dirs or all files
> > are listed, but they are listed without coloring.
> I'm not able to reproduce your problem.  I get coloring in both cases.  
> Are you _sure_ zsh/complist is loaded?  Are you sure you have ZLS_COLORS 
> set properly?

    ZLS_COLORS and ZLS_COLOURS are bot set and working (AFAIK...) and
zsh/complist is loaded:

    $ zmodload 
    zsh/compctl
    zsh/complete
    zsh/complist
    zsh/main
    zsh/zle

    Hey, that's weird :((( I'm testing again completion and *all*
colorable files are colored *except* directories :( I mean, if I use
default completion (not my widget and function), directories are
colored, otherwise they aren't, that's the only difference :?

> >     If it is not long, boring or off-topic: could anyone explain me
> > how the shell functions given with compsys do the coloring
> The shell functions in compsys don't do anything magical.  They just read 
> a value from a style and assign that to ZLS_COLORS, then restore the old
> ZLS_COLORS value after finishing.

    OK, that's what I assumed from what I read in _setup,
_main_complete and others. BTW, my ZLS_COLORS parameter is:

no=00:fi=00:di=01;37:ln=01;36:pi=05;33:so=01;35:bd=01;33\
  :cd=01;33:or=01;05;31:ex=01;32:*.tar=01;34:*.tgz=01;34\
  :*.z=01;34:*.Z=01;34:*.gz=01;34:*.bz2=01;34:

    ZLS_COLOURS is exactly the same. If I change the color for the
'di' entry, the default completion shows directories with the
appropriate color, but my widget doesn't, it doesn't color them. The
same if I remove the 'di' entry: the default completion colors them
red, mine doesn't color at all. Known bug in my version?

    Thanks again Bart, you're so kind :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/


  reply	other threads:[~2004-07-15 10:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-14 11:21 DervishD
2004-07-15  3:27 ` Bart Schaefer
2004-07-15 10:50   ` DervishD [this message]
2004-07-15 15:21     ` Bart Schaefer
2004-07-15 16:36       ` DervishD
2004-07-16  2:20         ` Bart Schaefer
2004-07-16  8:20           ` DervishD
2005-11-21 13:18 Nikolai Weibull
     [not found] ` <200511211902.46023.arvidjaar@mail.ru>
2005-11-21 16:12   ` Nikolai Weibull

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=20040715105054.GC10481@DervishD \
    --to=raul@pleyades.net \
    --cc=zsh-users@sunsite.dk \
    /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).