kanban.bash icon indicating copy to clipboard operation
kanban.bash copied to clipboard

Add labels as colours?

Open jimmysjolund opened this issue 6 years ago • 6 comments

I don't know enough to implement it myself, but have a need and idea to be able to add labels to tasks and get them colour-coded to easier distinguish between different kind of tasks and/or projects on the board. For instance I would use: red = blocked yellow = deadline other colours for different projects.

jimmysjolund avatar Mar 09 '19 10:03 jimmysjolund

Cool idea. Any ideas how/where the user could specify the colors?

coderofsalvation avatar Jun 28 '19 14:06 coderofsalvation

I've played a bit with colors, but this screws up the layout (it relies on unix tools pr and column which count chars, including (color) escape codes :/) I'm closing this until somebody finds an easier solution.

coderofsalvation avatar Sep 30 '21 13:09 coderofsalvation

image

found a way to post-process the coloring :) coming in the future: define colors in config-file

coderofsalvation avatar Oct 01 '21 10:10 coderofsalvation

What ever happened to this feature? This little tool seems great, but usage is slightly confusion. For example, where you give the examples there are a few that lack any explanation of what they are intended to do

dverbeeck avatar Aug 15 '23 12:08 dverbeeck

Hi, good question. What we have right now is color-substitution. In other words, we have few colors defined in the top of the script:

COL1="\033[37;1m"
COL2="\033[91;1m"
COL3="\033[91;5m"

and later in the script we use that color when it matches a certain regex:

  • #foo will trigger #([a-zA-Z0-9_\.-]+) which to apply COL1
  • *bar* will trigger /\*([a-zA-Z0-9_\.-]+)\*/ which will apply COL3

in theory we could move this to the .kanban/.kanban.conf conf-file, something like this:

colorize["warning"] = $RED
colorize["#([a-zA-Z0-9_\.-]+)"] = $RED
colorize["\*([a-zA-Z0-9_\.-]+)\*"] = $BLUE

WDYT?

  • word

coderofsalvation avatar Aug 15 '23 16:08 coderofsalvation