You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For tree, I am thinking about how to best implement more complex search targets. See notes at https://github.com/alphapapa/org-ql/blob/master/notes.org#a-outline-path-in-buffers-files-arg It should probably also accept markers, or maybe (buffer . pos) cells. It will require some refactoring in a few places, so I'll probably do that for version 0.3 or something like that.
Sounds promising. This is actually close to the capturing templates target element syntax.
So BUFFERS-FILES can be one of the following expression or an expression which evaluates to a list of files, buffers or one of the following expressions:
Outline path(olp "file or buffer name" "Level 1 heading" "Level 2" ...)
Search the subtree of parent heading matching outline path in file or buffer.
ID(id "file or buffer name" "id_name")
Search the subtree of parent heading matching ID in file or buffer.
Point(point "file or buffer name" point)
Search the subtree at point in file or buffer.
Marker(marker #<marker>):
Search the subtree at marker.
Maybe in addition:
Bookmark(bookmark "file or buffer name" "bookmark name")
Search the subtree at bookmark.
Function(function (lambda () (...)))
Search the subtree at the location returned by function)
An example:
(org-ql (buffer
"~/org/ideas.org"
(olp "~/org/inbox.org""Emacs""Ideas")
(id "~/org/someday.org""ideas")
(point"~/org/tickler.org"312))
(todo "NEXT"))
Org-map-entries has a scope argument that determines the scope of the command.
It supports the following values among others:
Can this be done with
org-ql
(limit the headlines parsed to a subtree or region)?The text was updated successfully, but these errors were encountered: