aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--DEVELOPING.md2
-rwxr-xr-xlibexec/recit-entries3
-rw-r--r--share/recit/templates/entries.templ2
3 files changed, 5 insertions, 2 deletions
diff --git a/DEVELOPING.md b/DEVELOPING.md
new file mode 100644
index 0000000..1c3bd20
--- /dev/null
+++ b/DEVELOPING.md
@@ -0,0 +1,2 @@
+# colors in templates
+See https://stackoverflow.com/a/67186462 \ No newline at end of file
diff --git a/libexec/recit-entries b/libexec/recit-entries
index e76f14d..9cb45ca 100755
--- a/libexec/recit-entries
+++ b/libexec/recit-entries
@@ -59,7 +59,8 @@ if ! [[ "$project" = "" ]]; then
fi
if [[ "$expression" = "" ]]; then
- recsel -t Entry "${recfile}" | recfmt -f share/recit/templates/entries.templ
+ out=$(recsel -t Entry "${recfile}" | recfmt -f share/recit/templates/entries.templ)
+ echo -e "$out"
else
recsel -t Entry -e "$expression" "${recfile}"
fi
diff --git a/share/recit/templates/entries.templ b/share/recit/templates/entries.templ
index 1f02a10..9cb37c5 100644
--- a/share/recit/templates/entries.templ
+++ b/share/recit/templates/entries.templ
@@ -1,3 +1,3 @@
-{{Time}} ({{Id}})
+\033[1;36m{{Time}}\033[0m ({{Id}})
{{Notes}}