Colored hgk [PATCH 1 of 1]

Georg gwk.rko at googlemail.com
Thu Apr 12 11:15:29 UTC 2007


2007/4/11, Eric St-Jean <esj at wwd.ca>:
>
> Georg-W. Koltermann wrote:
> > Hi,
> >
> > I enhanced hgk to color commits by author.  For fixed color assignments
> > you can list author regexps and associated colors in .gitk.  For random
> > color assignments you can supply just a list of colors, and gitk will
> > pick from this list as new authors are seen.
> >
> > Also the line corresponding to the "current id" now stands out in a
> > different font.
> >
> > Let me know what you think.
> >
>
> I love it!
> But the font for the current id comes out unreadable (see attached
> screenshot).


The font can be configured by the "curidfont" variable in ~/.gitk like any
other fonts.  You may want to copy the font name that you have for mainfont,
then add some highlighting to it.  I usually add "bold italic underline".

I think I need to improve the algorithm for determining the initial value,
should copy your preferred mainfont from ~/.gitk as a basis.  See the
attached revised patch.

Unfortunately you will need to manually remove the "set curidfont..." from
your ~/.gitk.  Only then will it be initialized again.

--
Regards,
Georg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20070412/9f40532c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colored-hgk-2.diff
Type: text/x-patch
Size: 5947 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20070412/9f40532c/attachment-0002.bin>


More information about the Mercurial-devel mailing list