From 7028209a56cd916c624b3729e938a6b586fa3793 Mon Sep 17 00:00:00 2001 From: Joeri de Ruiter Date: Fri, 11 Mar 2022 11:39:41 +0100 Subject: [PATCH] feat: allow use of color codes in markup templates --- todofi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todofi.sh b/todofi.sh index 0521a26..5ccc7b9 100755 --- a/todofi.sh +++ b/todofi.sh @@ -132,10 +132,10 @@ highlight() { # Highlight WORD_REGEX="[[:alnum:]]+" echo "${line}" | sed -r " + s/(\#${WORD_REGEX})/${MARKUP_TAG}/g; s/^\(([a-zA-Z]+)\) (.*)/${MARKUP_PRIORITY}/g; s/(\+${WORD_REGEX})/${MARKUP_PROJECT}/g; s/(\@${WORD_REGEX})/${MARKUP_CONTEXT}/g; - s/(\#${WORD_REGEX})/${MARKUP_TAG}/g; s/(due\:[0-9\-]+)/${MARKUP_DUE}/g" }