From 441ff017b93ee3820ca12919e950bce67d786d89 Mon Sep 17 00:00:00 2001 From: Maltimore Date: Mon, 30 Jun 2025 17:41:49 +0200 Subject: [PATCH] fix: notifications: show notifications for plain timestamps. do not show notifications for date range ends --- lua/orgmode/notifications/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/orgmode/notifications/init.lua b/lua/orgmode/notifications/init.lua index 9fce2fb2a..7f48801dc 100644 --- a/lua/orgmode/notifications/init.lua +++ b/lua/orgmode/notifications/init.lua @@ -101,7 +101,7 @@ function Notifications:get_tasks(time) local tasks = {} for _, orgfile in ipairs(self.files:all()) do for _, headline in ipairs(orgfile:get_opened_unfinished_headlines()) do - for _, date in ipairs(headline:get_deadline_and_scheduled_dates()) do + for _, date in ipairs(headline:get_valid_dates_for_agenda()) do local reminders = self:_check_reminders(date, time) for _, reminder in ipairs(reminders) do table.insert(tasks, { @@ -140,6 +140,9 @@ function Notifications:_check_reminders(date, time) if date:is_scheduled() and not notifications.scheduled_reminder then return result end + if date.is_date_range_end then + return result + end if notifications.repeater_reminder_time and date:get_repeater() then local repeater_time = date:apply_repeater_until(time)