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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user