4

I'm looking into a way to extend search in documents, especially, Org files by ways of indexing them. In order to make the indexing more robust, it would be great to make it aware of different sections of a file. In Org files, in particular, it would make sense to look separately into headers, the pargraphs of text, comments and snippets of other documents (code, tables etc.)

Is there a way to extract this information as some data-structure?

1 Answer 1

4

See for example:

(org-element-parse-buffer 'headline)

It's also useful to grep the Org git repository for org-element-map.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.