aboutsummaryrefslogtreecommitdiffstats
path: root/grepjournal
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-13 15:24:17 +0000
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-13 15:24:17 +0000
commit9c2103e72f21caedae53dd0cb572f666502025b0 (patch)
treef45e96c361f0cb46c3964a7c1165b74ec18ef8fa /grepjournal
parent8c06d384ec85601efbf05036ee853dc6a6a9c3a5 (diff)
added the T time component to make sorting accurate
Diffstat (limited to '')
-rwxr-xr-xgrepjournal4
1 files changed, 3 insertions, 1 deletions
diff --git a/grepjournal b/grepjournal
index 3f4229e..2f31fa3 100755
--- a/grepjournal
+++ b/grepjournal
@@ -4,6 +4,8 @@
colourWhite="\033[38;2;255;255;255m"
colourGreen="\033[38;2;0;255;0m"
+colourLightGreen="\033[38;2;231;252;179m"
+colourGray="\033[38;2;100;100;100m"
colourOrange="\033[38;2;249;130;44m"
colourCyan="\033[38;2;0;255;255m"
txBold="\033[1m"
@@ -57,7 +59,7 @@ while IFS= read -r line; do
time=${BASH_REMATCH[4]}
note=${BASH_REMATCH[5]}
fi
- out_line="${colourGreen}"$year"-"$month"-"$day":${txReset} ${note}"
+ out_line="${colourGreen}"$year"-"$month"-"$day"${colourGray}T${colourLightGreen}"$time":${txReset} ${note}"
if [[ $out_line =~ $urlregex ]]; then
out_line=${out_line/${BASH_REMATCH[0]}/${colourCyan}${BASH_REMATCH[0]}${txReset}}
fi