From e2d91b581199937c7b118220ebb30dcae52e51cc Mon Sep 17 00:00:00 2001 From: Zaz Brown Date: Tue, 21 Jan 2025 18:15:04 +0000 Subject: [PATCH 1/2] make adding clock reports optional --- ical2org.awk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ical2org.awk b/ical2org.awk index 022ce8f..f47f8bc 100755 --- a/ical2org.awk +++ b/ical2org.awk @@ -96,6 +96,9 @@ BEGIN { # ... and value 0 doesn't touch them trimdots = 1; + # add clock reports for the duration of each calendar entry + add_clock_report = 1; + # change this to your name author = ENVIRON["AUTHOR"] != "" ? ENVIRON["AUTHOR"] : "Marc Sherry" @@ -436,7 +439,7 @@ BEGIN { print " :ATTENDING: " attending_string print " :ATTENDEES: " join_keys(people_attending) print " :END:" - if (date2 != "") + if (add_clock_report && date2 != "") { # Fake some logbook entries so we can generate a clock report print " :LOGBOOK:" From 229fe8f2e3e40f9034fcbb2f0a5a00a085ce6594 Mon Sep 17 00:00:00 2001 From: Zaz Brown Date: Tue, 21 Jan 2025 18:18:44 +0000 Subject: [PATCH 2/2] disable clock reports by default --- ical2org.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ical2org.awk b/ical2org.awk index f47f8bc..444671f 100755 --- a/ical2org.awk +++ b/ical2org.awk @@ -97,7 +97,7 @@ BEGIN { trimdots = 1; # add clock reports for the duration of each calendar entry - add_clock_report = 1; + add_clock_report = 0; # change this to your name author = ENVIRON["AUTHOR"] != "" ? ENVIRON["AUTHOR"] : "Marc Sherry"