Closed yimingwangdell closed 8 months ago
You can use api for this. This would list headline lines where deadline is today when you open up Neovim:
vim.api.nvim_create_autocmd('VimEnter', {
pattern = '*',
callback = function()
local api = require('orgmode.api')
local files = api.load()
local result = {}
for _, file in ipairs(files) do
for _, headline in ipairs(file.headlines) do
if headline.deadline and headline.deadline:is_today() then
table.insert(result, headline.line)
end
end
end
vim.print(result)
end
})
You can play with it to get the results you want.
Does this feature exist in Emacs orgmode core?
No
Orgmode link
No response
Feature value
No response
Additional context
if it can display whether I have planned task today when I launch vim, it would be good.