A searching tool for Org-mode, including custom query languages, commands, saved searches and agenda-like views, etc.
Added
org-ql-find
, org-ql-find-heading
, and org-ql-find-path
, which jump to entries selected using Emacs's built-in completion facilities and Org QL queries (like helm-org-ql
, but doesn't require Helm.).org-ql-refile
, which refiles the entry at point to one selected using Org QL completion.rifle
, which matches an entry if each of the given arguments is found in either the entry's contents or its outline path. This provides very intuitive results, mimicing the behavior of org-rifle
. In fact, the results are so useful that it's now the default predicate for plain-string query tokens. (It is also aliased to smart
, since it's so "smart," and not all users have used org-rifle
.)org-ql-default-predicate
, applied to plain-string query tokens (before, the regexp
predicate was always used, but now it may be customized).c
for predicate category
.property
now accepts the argument :inherit
to match entries with property inheritance, and when unspecified, the option org-use-property-inheritance
controls whether inheritance is used.blocked
. (Thanks to Akira Komamura.)Changed
src
now matches case-insensitively.org-ql-sparse-tree
accepts both string and sexp queries. (Thanks to Akira Komamura.)Fixed
link
matches links whose descriptions contain escaped brackets (changed in Org 9.3). (Thanks to Daniel Borchmann for reporting.)src
's matching of begin/end block lines, normalization of arguments, and handling in non-sexp queries. (Thanks to Akira Komamura for reporting.)src
's behavior with various arguments.Internal
and
sub-expression, are optimized to a single call.buffer-chars-modified-tick
instead of buffer-modified-tick
. (Thanks to Ihor Radchenko.)src
predicate.Credits
Note: The next release, 0.5, may include changes which will require minor updates to written queries (e.g. a few predicates may be renamed). Users who wish to avoid those changes happening unexpectedly in their configs should avoid upgrading org-ql
beyond 0.4 automatically, as they will be pushed to the master
branch when ready.
Added
helm-org-ql-views
, which shows one of org-ql-views
selected with Helm.org-ql-search
can search files in org-directory
; customization options are available in the org-ql-search
group.org-ql-view-refresh
can be called with a prefix argument to adjust search parameters.!
. For example, tags:space !moon
to exclude entries which contain moon
.outline-path
(alias olp
) and outline-path-segment
(alias olps
).src
, which matches Org Babel source blocks.parent
and ancestors
. (Thanks to Josh Moller-Mara.)h
for heading
predicate.r
for regexp
predicate. (Thanks to Feng Shu.)helm-org-ql-source
, which returns a Helm source that searches given buffers/files with helm-org-ql
. It can be used for custom Helm commands that search certain files.org-ql-block
. (Thanks to Ihor Radchenko for reporting.)org-ql-view-sidebar-sort-views
.help-echo
text for org-ql-views
default view names.org-ql-views
. (Users who have modified org-ql-views
from the default will not see the new view unless they copy it into their config.)Changed
org-ql-view
views (users who have modified org-ql-views
from the default will not see the new views unless they copy them into their config):
descendants
instead of children
, which is more useful.Fixed
org-tag-inheritance
is enabled. (Fixes #55. Thanks to Mikhail Skorzhinskiy.)helm-make-source
directly instead of using helm-build-sync-source
macro. (Fixes #60. Thanks to Matt Huszagh for reporting.)end-of-buffer
.org-ql-view
buffers. (Thanks to Yiming Chen.)org-ql-block
agenda block. (Fixes #53. Thanks to reports from Gus Cantieni, Karl Voit, rieje, and Jake | Junxuan.)Internal