Add/Change: (heading-regexp), (heading) predicates

Closes #64.  Closes #68.

Thanks to Feng Shu (@tumashu) for suggestions.
This commit is contained in:
Adam Porter 2020-12-09 21:28:55 -06:00
parent 31efd5a26d
commit 2dfd378d5f
4 changed files with 95 additions and 45 deletions

View file

@ -401,10 +401,14 @@ Arguments are listed next to predicate names, where applicable.
Return non-nil if entrys TODO keyword is in org-done-keywords.
habit
Return non-nil if entry is a habit.
heading (&rest regexps)
Return non-nil if current entrys heading matches all REGEXPS
(regexp strings).
heading (&rest strings)
Return non-nil if current entrys heading matches all STRINGS.
Matching is done case-insensitively.
• Aliases: h.
heading-regexp (&rest regexps)
Return non-nil if current entrys heading matches all REGEXPS
(regexp strings). Matching is done case-insensitively.
• Aliases: h*.
level (level-or-comparator &optional level)
Return non-nil if current headings outline level matches
arguments. The following forms are accepted: (level NUMBER):
@ -962,10 +966,14 @@ File: README.info, Node: 06-pre, Next: 05, Up: Changelog
*Added*
• Macro org-ql-defpred, used to define search predicates. (See
tutorial (examples/defpred.org).)
• Predicate heading-regexp, which matches regular expressions
against heading text (alias: h*).
*Changed*
• Helm support (including the command helm-org-ql) has been moved to
a separate package, helm-org-ql.
• Predicate heading now matches plain strings instead of regular
expressions.
*Internal*
• Predicates are now defined more cleanly with a macro
@ -1477,40 +1485,40 @@ Node: org-ql-sparse-tree7544
Node: Queries8344
Node: Non-sexp query syntax9455
Node: General predicates11162
Node: Ancestor/descendant predicates16575
Node: Date/time predicates17703
Node: Functions / Macros20358
Node: Agenda-like views20656
Node: Listing / acting-on results22061
Node: Custom predicates27683
Node: Dynamic block31174
Node: Links33872
Node: Tips34559
Node: Changelog34877
Node: 06-pre35573
Node: 0536196
Node: 04937673
Node: 04837947
Node: 04738294
Node: 04638689
Node: 04539089
Node: 04439448
Node: 04339805
Node: 04240000
Node: 04140161
Node: 0440402
Node: 03244335
Node: 03144714
Node: 0344911
Node: 02347886
Node: 02248114
Node: 02148382
Node: 0248581
Node: 0152616
Node: Notes52717
Node: Comparison with Org Agenda searches52879
Node: org-sidebar53751
Node: License54030
Node: Ancestor/descendant predicates16805
Node: Date/time predicates17933
Node: Functions / Macros20588
Node: Agenda-like views20886
Node: Listing / acting-on results22291
Node: Custom predicates27913
Node: Dynamic block31404
Node: Links34102
Node: Tips34789
Node: Changelog35107
Node: 06-pre35803
Node: 0536638
Node: 04938115
Node: 04838389
Node: 04738736
Node: 04639131
Node: 04539531
Node: 04439890
Node: 04340247
Node: 04240442
Node: 04140603
Node: 0440844
Node: 03244777
Node: 03145156
Node: 0345353
Node: 02348328
Node: 02248556
Node: 02148824
Node: 0249023
Node: 0153058
Node: Notes53159
Node: Comparison with Org Agenda searches53321
Node: org-sidebar54193
Node: License54472

End Tag Table