Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/orgmode/notifications/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down