diff options
author | Arun Isaac | 2022-06-25 16:02:25 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-25 16:04:08 +0530 |
commit | d1bd37eb16b3dfb81e2254f6c9c3cb86a0f68b01 (patch) | |
tree | 13679b8c5c3302dc826547ce9ac3bc38a5a6d79c /bin | |
parent | e3bc61d00c8de8a5a618d28cb87a69fe30e7dad8 (diff) | |
download | tissue-d1bd37eb16b3dfb81e2254f6c9c3cb86a0f68b01.tar.gz tissue-d1bd37eb16b3dfb81e2254f6c9c3cb86a0f68b01.tar.lz tissue-d1bd37eb16b3dfb81e2254f6c9c3cb86a0f68b01.zip |
bin: Unbolden issue keywords and show them all on blue.
Bold issue keywords are too visually distracting. They compete with
highlit text in snippets.
* bin/tissue (print-issue): Unbolden issue keywords and show them all
on blue, instead of some on red and some on blue.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tissue | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -99,20 +99,9 @@ to run tissue." ;; words in red. Else, highlight in blue. (unless (null? (issue-keywords issue)) (display " ") - (display (string-join - (map (lambda (keyword) - ((cut colorize-string - <> - (cond - ((not (null? (lset-intersection - string=? - (string-split keyword #\space) - (list "bug" "critical")))) - 'ON-RED) - (else 'ON-BLUE))) - (string-append " " keyword " "))) - (issue-keywords issue)) - " "))) + (display (string-join (map (cut colorize-string <> 'ON-BLUE) + (issue-keywords issue)) + " "))) (unless (null? (issue-assigned issue)) (display (colorize-string (string-append " (assigned: " (string-join (issue-assigned issue) |