Skip to content

Names for colors #109

Description

@42plat0

Flag --group-highlights-by-color produces heading with color code (eg. ### Color: 69aff0). It would be great enhancement to produce human readable color definitions of highlights (eg. Blue if there's more than one yellow, Cornflower Blue). I think I'm not alone in grouping my highlights by what they represent (idea, action etc.).

This could be accomplished by calculating euclidean distance of annotation rgb values to a set of predefined colors, something simple like

Black   #000000     (0,0,0)
Red     #FF0000     (255,0,0)
Blue    #0000FF     (0,0,255)
Yellow  #FFFF00     (255,255,0)
Green   #008000     (0,128,0)
Purple  #800080     (128,0,128)

And for each group of annots there'd be a need to calculate only once.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions