From 32e4d0e9425918041f505d10d75800eb7a81d4f2 Mon Sep 17 00:00:00 2001 From: Maltimore Date: Mon, 30 Jun 2025 14:47:24 +0200 Subject: [PATCH] fix: todo state in notifications --- lua/orgmode/notifications/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/orgmode/notifications/init.lua b/lua/orgmode/notifications/init.lua index 7605267e0..9fce2fb2a 100644 --- a/lua/orgmode/notifications/init.lua +++ b/lua/orgmode/notifications/init.lua @@ -53,7 +53,7 @@ function Notifications:notify(time) for _, task in ipairs(tasks) do utils.concat(result, { string.format('# %s (%s)', task.category, task.humanized_duration), - string.format('%s %s %s', string.rep('*', task.level), task.todo, task.title), + string.format('%s %s %s', string.rep('*', task.level), task.todo or '', task.title), string.format('%s: <%s>', task.type, task.time:to_string()), }) end @@ -77,7 +77,7 @@ end function Notifications:_cron_notifier(tasks) for _, task in ipairs(tasks) do local title = string.format('%s (%s)', task.category, task.humanized_duration) - local subtitle = string.format('%s %s %s', string.rep('*', task.level), task.todo, task.title) + local subtitle = string.format('%s %s %s', string.rep('*', task.level), task.todo or '', task.title) local date = string.format('%s: %s', task.type, task.time:to_string()) if vim.fn.executable('notify-send') == 1 then