Skip to content

How to extract a "status" report? #715

Answered by kristijanhusak
KnBrckr asked this question in Q&A
Discussion options

You must be logged in to vote

You can use orgmode API for that.

This can be your starting point:

local orgmode = require('orgmode.api')

local files = orgmode.load()

for _, file in ipairs(files) do
  for _, headline in ipairs(file.headlines) do
    print('headline', vim.inspect(headline)
  end
end

body of a headline is not provided, but you have the first line, and some details line deadline, schedule, etc.
If you think you could use something else I can extend api.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KnBrckr
Comment options

Answer selected by KnBrckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants