git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/1] Highlight keywords in remote sideband output.

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 31, 2018, 01:03 UTC
Message-ID
<20180731010312.GA45452@genre.crustytoothpaste.net>
In-Reply-To
<CACsJy8CSh5uqWepdY7wCzP024WYcRFM719uXoKzJ4oziHHxwjw@mail.gmail.com>
On Mon, Jul 30, 2018 at 04:52:40PM +0200, Duy Nguyen wrote:
Show 13 quoted lines
> On Mon, Jul 30, 2018 at 2:34 PM Han-Wen Nienhuys <hanwen@google.com> wrote:
> > +       struct kwtable {
> > +               const char *keyword;
> > +               const char *color;
> > +       } keywords[] = {
> > +               {"hint", GIT_COLOR_YELLOW},
> > +               {"warning", GIT_COLOR_BOLD_YELLOW},
> > +               {"success", GIT_COLOR_BOLD_GREEN},
> > +               {"error", GIT_COLOR_BOLD_RED},
> > +       };
> 
> Please let me customize these colors. "grep color.*slot
> Documentation/config.txt help.c" could give you a few examples.

Yes, please. I use a transparent terminal and I have trouble seeing the default red in some cases due to lack of contrast, and some people with certain forms of colorblindness may be unable to distinguish these three colors at all.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Duy NguyenNext: Junio C Hamano
Message 4 of 9 in “Highlight keywords in remote sideband output.”
  1. 0/1 Highlight keywords in remote sideband output.Han-Wen Nienhuys, Jul 30, 2018
  2. 1/1 Highlight keywords in remote sideband output.Han-Wen Nienhuys, Jul 30, 2018
  3. Duy NguyenJul 30, 2018
  4. brian m. carlsonJul 31, 2018
  5. Junio C HamanoJul 30, 2018
  6. Han-Wen NienhuysJul 31, 2018
  7. Junio C HamanoJul 31, 2018
  8. Ævar Arnfjörð BjarmasonJul 31, 2018
  9. Duy NguyenJul 31, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.