Skip to content

Commit 26f6a5a

Browse files
committed
fix: notifications: show notifications for plain timestamps. do not show notifications for date range ends
1 parent b6d14eb commit 26f6a5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/orgmode/notifications/init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function Notifications:get_tasks(time)
101101
local tasks = {}
102102
for _, orgfile in ipairs(self.files:all()) do
103103
for _, headline in ipairs(orgfile:get_opened_unfinished_headlines()) do
104-
for _, date in ipairs(headline:get_deadline_and_scheduled_dates()) do
104+
for _, date in ipairs(headline:get_valid_dates_for_agenda()) do
105105
local reminders = self:_check_reminders(date, time)
106106
for _, reminder in ipairs(reminders) do
107107
table.insert(tasks, {
@@ -140,6 +140,9 @@ function Notifications:_check_reminders(date, time)
140140
if date:is_scheduled() and not notifications.scheduled_reminder then
141141
return result
142142
end
143+
if date.is_date_range_end then
144+
return result
145+
end
143146

144147
if notifications.repeater_reminder_time and date:get_repeater() then
145148
local repeater_time = date:apply_repeater_until(time)

0 commit comments

Comments
 (0)