<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] make it possible to colorize the status bar [WAS: Re: Remind me of postponed eMails in my status line while I am in index]



Hello again,
I hacked up my color status bar patch a little bit. The product is
something that could be useful for upstream:

        - Mutt has introduced two seperate colorization configuration
          names for colorizing the header:

                  # Default Header Color
                  color hdrdefault cyan           default

                  # Special Header Color
                  color header     red            default ^From:

          This could be better. There could be one configuration name
          'header'. The default is just with two arguments (foreground
          and background color), and a special header could be the same
          thing just with three arguments (third argument would be the
          regex to match the header). If this is interesting for
          upstream I could make a patch ready (which would also support
          the old syntax)

        - I hacked up the the colorization regexp implementation of mutt
          to support grouping. An example makes my issue clear:

                  # Match the expression, but Highlight only the S
                  color status    brightred white ^..(S)                1
          
          This colorizes only the S and not the whole 3 characters.
          Exchanging the 1 with 0 would match all 3 chars (which is the
          default). The 1 till whatever would match Nth group. A Group
          is something enclosed in ( ... ). This could also be
          interesting for upstream.

The color status bar patch keeps improving. It now also supports the
status bar in the pager. :-)

        http://wwwcip.informatik.uni-erlangen.de/~sithglan/mutt/

Oh and if you like the color status patch ... than tell me about! :-)

Honestly,
        Thomas