Repository navigation
Replies: 1 comment
|
Yes. Open the agenda through the Lua API in a headless Neovim, wait for the agenda buffer to render, and write its lines to stdout. Save this as require("orgmode.api.agenda").agenda({ span = 7 }) -- or .todos(), or agenda({ from = "2026-06-01", span = "month" })
vim.wait(5000, function() return vim.bo.filetype == "orgagenda" end)
io.stdout:write(table.concat(vim.api.nvim_buf_get_lines(0, 0, -1, false), "\n") .. "\n")
vim.cmd("qa!")Then run it from cron: nvim --headless -c 'luafile ~/.config/nvim/agenda-dump.lua' > ~/agenda.txtYour normal config loads, so Output from my test file:
If this solves it, please mark it as the answer so others with the same problem can find it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi
I am looking for a way to make the agenda entries visible for other tools so what I am looking for is something like
nvim -c "some magic"
that I could run from cron and that would allow me to eg pipe it's output to a script.
is that possible somehow?
Many thanks.
All reactions