kanban.bash
kanban.bash copied to clipboard
Add labels as colours?
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.
Cool idea. Any ideas how/where the user could specify the colors?
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.

found a way to post-process the coloring :) coming in the future: define colors in config-file
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
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:
#foowill 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