Add: (effort) predicate

Closes #80.
This commit is contained in:
Adam Porter 2021-06-16 20:38:20 -05:00
parent 0dc073ffac
commit d8bfa2317a
4 changed files with 176 additions and 36 deletions

View file

@ -401,6 +401,14 @@ Arguments are listed next to predicate names, where applicable.
(a list of strings).
done
Return non-nil if entrys TODO keyword is in org-done-keywords.
effort (&optional effort-or-comparator effort)
Return non-nil if current headings effort property matches
arguments. The following forms are accepted: (effort DURATION):
Matches if effort is DURATION. (effort DURATION DURATION):
Matches if effort is between DURATIONs, inclusive. (effort
COMPARATOR DURATION): Matches if effort compares to DURATION
with COMPARATOR. COMPARATOR may be <, <=, >, or >=.
DURATION should be an Org effort string, like 5 or 0:05.
habit
Return non-nil if entry is a habit.
heading (&rest strings)
@ -970,6 +978,7 @@ File: README.info, Node: 06-pre, Next: 052, Up: Changelog
*Added*
• Macro org-ql-defpred, used to define search predicates. (See
tutorial (examples/defpred.org).)
• Predicate effort.
• Predicate heading-regexp, which matches regular expressions
against heading text (alias: h*).
@ -1523,42 +1532,42 @@ Node: org-ql-sparse-tree7574
Node: Queries8374
Node: Non-sexp query syntax9485
Node: General predicates11192
Node: Ancestor/descendant predicates16835
Node: Date/time predicates17963
Node: Functions / Macros20618
Node: Agenda-like views20916
Node: Listing / acting-on results22321
Node: Custom predicates27943
Node: Dynamic block31434
Node: Links34132
Node: Tips34819
Node: Changelog35137
Node: 06-pre35863
Node: 05237239
Node: 05137543
Node: 0537960
Node: 04939434
Node: 04839708
Node: 04740055
Node: 04640450
Node: 04540850
Node: 04441209
Node: 04341568
Node: 04241765
Node: 04141926
Node: 0442167
Node: 03246100
Node: 03146479
Node: 0346676
Node: 02349651
Node: 02249879
Node: 02150147
Node: 0250346
Node: 0154381
Node: Notes54482
Node: Comparison with Org Agenda searches54644
Node: org-sidebar55516
Node: License55795
Node: Ancestor/descendant predicates17413
Node: Date/time predicates18541
Node: Functions / Macros21196
Node: Agenda-like views21494
Node: Listing / acting-on results22899
Node: Custom predicates28521
Node: Dynamic block32012
Node: Links34710
Node: Tips35397
Node: Changelog35715
Node: 06-pre36441
Node: 05237848
Node: 05138152
Node: 0538569
Node: 04940043
Node: 04840317
Node: 04740664
Node: 04641059
Node: 04541459
Node: 04441818
Node: 04342177
Node: 04242374
Node: 04142535
Node: 0442776
Node: 03246709
Node: 03147088
Node: 0347285
Node: 02350260
Node: 02250488
Node: 02150756
Node: 0250955
Node: 0154990
Node: Notes55091
Node: Comparison with Org Agenda searches55253
Node: org-sidebar56125
Node: License56404

End Tag Table