zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: coloring of --help completion possible?
Date: Wed, 28 Jun 2000 15:57:51 +0200 (MET DST)	[thread overview]
Message-ID: <200006281357.PAA32437@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Matthias Kopfermann's message of Wed, 28 Jun 2000 15:22:25 +0200


[ moved to workers, not CC'ed ]

Matthias Kopfermann wrote:

> Ah, and another question:
> As I am a big color-completion-fan (yes, this is emotional, not only
> functional :) ) I would like to have my
> `--' completion do act in a colorful way.
> But I am not sure how I can do that.
> As i understand it It does involve zstyle ':completion:*'
> something?

This made me notice some misformatting in the ZLS_COLORS generated and 
the C-code should probably skip `empty' `capabilities' (as in `a=x::b=y').

Bye
 Sven

Index: Completion/Core/_setup
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_setup,v
retrieving revision 1.6
diff -u -r1.6 _setup
--- Completion/Core/_setup	2000/06/22 08:42:36	1.6
+++ Completion/Core/_setup	2000/06/28 13:57:26
@@ -10,7 +10,7 @@
     _comp_colors=( "$val[@]" )
   else
     _comp_colors=( "$_comp_colors[@]"
-                   "(${2})${(@)^val:#\(*\)*}" "${(M@)val:#\(*\)*}" )
+                   "(${2})${(@)^val:#(|\(*\)*)}" "${(M@)val:#\(*\)*}" )
   fi
 
 # Here is the problem mentioned in _main_complete.
Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.30
diff -u -r1.30 complist.c
--- Src/Zle/complist.c	2000/06/28 07:29:59	1.30
+++ Src/Zle/complist.c	2000/06/28 13:57:27
@@ -362,7 +362,10 @@
     memset(c, 0, sizeof(*c));
     s = dupstring(s);
     while (*s)
-	s = getcoldef(c, s);
+	if (*s == ':')
+	    s++;
+	else
+	    s = getcoldef(c, s);
 
     /* Use default values for those that aren't set explicitly. */
     for (i = 0; i < NUM_COLS; i++) {

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~2000-06-28 13:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200006281357.PAA32437@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.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).