Skip to content

Commit 483b23f

Browse files
author
github-actions
committed
[docgen] Update docs
1 parent 3e067d7 commit 483b23f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

doc/orgmode.txt

+14-2
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,12 @@ Default configuration (detailed description below):
23352335
if not vim.tbl_isempty(result) then
23362336
require('orgmode.notifications.notification_popup'):new({ content = result })
23372337
end
2338+
2339+
-- Example: if you use Snacks, you can do something like this (THis is not implemented)
2340+
Snacks.notifier.notify(table.concat(result, '\n'), vim.log.levels.INFO, {
2341+
title = 'Orgmode',
2342+
ft = 'org'
2343+
})
23382344
end,
23392345
cron_notifier = function(tasks)
23402346
for _, task in ipairs(tasks) do
@@ -2344,12 +2350,18 @@ Default configuration (detailed description below):
23442350

23452351
-- Linux
23462352
if vim.fn.executable('notify-send') == 1 then
2347-
vim.loop.spawn('notify-send', { args = { string.format('%s\n%s\n%s', title, subtitle, date) }})
2353+
vim.system({
2354+
'notify-send',
2355+
'--icon=/path/to/orgmode/assets/nvim-orgmode-small.png',
2356+
'--app-name=orgmode',
2357+
title,
2358+
string.format('%s\n%s', subtitle, date),
2359+
})
23482360
end
23492361

23502362
-- MacOS
23512363
if vim.fn.executable('terminal-notifier') == 1 then
2352-
vim.loop.spawn('terminal-notifier', { args = { '-title', title, '-subtitle', subtitle, '-message', date }})
2364+
vim.system({ 'terminal-notifier', '-title', title, '-subtitle', subtitle, '-message', date })
23532365
end
23542366
end
23552367
end

0 commit comments

Comments
 (0)