diff --git a/README.org b/README.org index 9c9d734..3ee3c48 100644 --- a/README.org +++ b/README.org @@ -549,6 +549,7 @@ Simple links may also be written manually in either sexp or non-sexp form, like: + Command ~org-ql-refile~, which refiles the entry at point to one selected using Org QL completion. + Predicate ~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 [[https://github.com/alphapapa/org-rifle][=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=.) + Option ~org-ql-default-predicate~, applied to plain-string query tokens (before, the ~regexp~ predicate was always used, but now it may be customized). ++ Alias ~c~ for predicate ~category~. *Changed* + Give more useful error message for invalid queries. diff --git a/org-ql.el b/org-ql.el index d4dbff9..5b804ba 100644 --- a/org-ql.el +++ b/org-ql.el @@ -1318,7 +1318,7 @@ result form." ;; redefinitions until all of the predicates have been defined. (setf org-ql-defpred-defer t) -(org-ql-defpred category (&rest categories) +(org-ql-defpred (category c) (&rest categories) "Return non-nil if current heading is in one or more of CATEGORIES (a list of strings)." :body (when-let ((category (org-get-category (point)))) (cl-typecase categories diff --git a/org-ql.info b/org-ql.info index 96fb8e4..e191c28 100644 --- a/org-ql.info +++ b/org-ql.info @@ -1033,6 +1033,7 @@ File: README.info, Node: 07-pre, Next: 062, Up: Changelog • Option ‘org-ql-default-predicate’, applied to plain-string query tokens (before, the ‘regexp’ predicate was always used, but now it may be customized). + • Alias ‘c’ for predicate ‘category’. *Changed* • Give more useful error message for invalid queries. @@ -1688,34 +1689,34 @@ Node: Links36995 Node: Tips37682 Node: Changelog38006 Node: 07-pre38774 -Node: 06240296 -Node: 06140604 -Node: 0641172 -Node: 05244226 -Node: 05144526 -Node: 0544949 -Node: 04946478 -Node: 04846758 -Node: 04747105 -Node: 04647514 -Node: 04547922 -Node: 04448283 -Node: 04348642 -Node: 04248845 -Node: 04149006 -Node: 0449253 -Node: 03253354 -Node: 03153757 -Node: 0353954 -Node: 02357254 -Node: 02257488 -Node: 02157768 -Node: 0257973 -Node: 0162051 -Node: Notes62152 -Node: Comparison with Org Agenda searches62314 -Node: org-sidebar63203 -Node: License63482 +Node: 06240347 +Node: 06140655 +Node: 0641223 +Node: 05244277 +Node: 05144577 +Node: 0545000 +Node: 04946529 +Node: 04846809 +Node: 04747156 +Node: 04647565 +Node: 04547973 +Node: 04448334 +Node: 04348693 +Node: 04248896 +Node: 04149057 +Node: 0449304 +Node: 03253405 +Node: 03153808 +Node: 0354005 +Node: 02357305 +Node: 02257539 +Node: 02157819 +Node: 0258024 +Node: 0162102 +Node: Notes62203 +Node: Comparison with Org Agenda searches62365 +Node: org-sidebar63254 +Node: License63533  End Tag Table