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?

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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.