orgparse icon indicating copy to clipboard operation
orgparse copied to clipboard

New function in node.py

Open sati-bodhi opened this issue 2 years ago • 0 comments

I wrote a get_nodes_with_heading function in node.py for my own project so that one can easily zoom-in on nodes with a certain heading in the loaded document.

Example Usage:

from orgparse import loads
root = loads("""
* first
** second
*** third
* fourth
""")
root.get_nodes_with_heading("third")[0].heading
# Output: 'third'

Hope the community would find this useful.

sati-bodhi avatar May 08 '22 11:05 sati-bodhi