commit: 6eae014e50b7208336271abe3d0a3788eb0e4faf
parent: bb1e01c41ce37b9f1e711643a433baeb4dec099b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 9 Apr 2020 10:14:45 +0200
timey-whyme.sh: disable line-lenght warning
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/bin/timey-whyme.sh b/bin/timey-whyme.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright CC-BY-SA-4.0 2017-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Copyright CC-BY-SA-4.0 2017-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
xdd="${XDG_DATA_DIR:-$HOME/.local/share}/timey-whyme"
today="$(date --date=now +%Y-%m-%d)"
later="$(date --date=+7days +%Y-%m-%d)"
@@ -30,10 +30,13 @@ verify_xxd() {
}
todo_gen() {
+# (GNU-ism) nowarn: turn off warning: table wider than line width
echo \
'.color 1
.TS
+nowarn;
llll.
+_
.TH
Deadline Nice Description Location
.TB
@@ -47,10 +50,13 @@ _'
}
calendar_gen() {
+# (GNU-ism) nowarn: turn off warning: table wider than line width
echo \
'.color 1
.TS
+nowarn;
llll.
+_
.TH
Start End Description Location
.TB
@@ -65,6 +71,8 @@ _'
calendar() {
verify_xxd calendar.csv
+ # -t : preprocess with tbl(1)
+ # grep -v '^$' : remove empty lines
calendar_gen | groff -t -Dutf-8 -Tutf8 | grep -v '^$'
}
todo() {