I saw the org-ql
package quite recently and was sort of excited that it might be able to jquery / xpath style querying. But having a look at org-ql I could not quickly find a way of doing this with org-ql?
Is it possible to programmatically find the descendants of a heading with a certain name? E.g. if point
is at a certain heading, how do I find the position of a heading which is a descendant of the first heading and has this name? What about if I just want to search the children?
Case 1
* Other
* Start <- cursor is here
** Child
*** descendant I want
I want a function (preferably one in a library)
(find-org-descendant "descendant I want")
That will return the position of this descendant
Case 2
Find children rather than descendants.
(find-org-child "Child")