feat(remind): implement alarm rendering for triggers

Remove debug logging from `collect_triggers` and
`separate_master_and_recurrence`, and add full alarm rendering support:
convert `Timedesc.Span.t` triggers to `++n`/`WARN`/`+n`/`SCHED` remind
syntax for both all-day and timed events, with dynamic `FSET` generation
for multiple triggers and annotated `MSG` bodies showing advance notice.
This commit is contained in:
2026-05-23 19:20:22 +02:00
parent 062196dcfd
commit 122a65f3e0
3 changed files with 119 additions and 20 deletions

View File

@@ -111,12 +111,6 @@ let collect_exdates rem ev : (Remind.rem, error) result =
let collect_triggers rem ev : (Remind.rem, error) result =
let triggers = Utils.get_triggers ev in
if List.length triggers > 0 then begin
Printf.eprintf "UID: %s\n" (Utils.get_uid ev);
ListLabels.iteri triggers ~f:(fun i trigger ->
Printf.eprintf " Trigger %d: %s\n" (i + 1) (Timedesc.Span.to_string trigger));
Printf.eprintf "\n"
end;
Ok { rem with Remind.triggers }
let yearly_simple_date rem ev : (Remind.rem, error) result =