From 7388be79daa6df11ad6df1bb6196ddcc970e25a7 Mon Sep 17 00:00:00 2001 From: Paolo Donadeo Date: Fri, 19 Jun 2026 23:16:33 +0200 Subject: [PATCH] fix: use %b %3 instead of %1 in timed alarm MSG %b %3 shows both day offset and verbose time remaining, giving more context when the reminder fires the day before the event. --- bin/remind.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/remind.ml b/bin/remind.ml index a17be22..664b170 100644 --- a/bin/remind.ml +++ b/bin/remind.ml @@ -274,7 +274,9 @@ let escape_msg s = let add_msg b ?(alarm = empty_alarm) ?(timed = false) summary = let has_alarm = alarm.day_delta <> "" || alarm.time_delta <> "" || alarm.sched <> "" in let body = escape_msg summary in - let body = if has_alarm then if timed then spf "%%\"%s%%\" (%%1)" body else spf "%%\"%s%%\" (%%b)" body else body in + let body = + if has_alarm then if timed then spf "%%\"%s%%\" (%%b %%3)" body else spf "%%\"%s%%\" (%%b)" body else body + in Buffer.add_string b (spf " MSG %s\n" body) let add_location b loc =