branch: master
commit 21d20195722474f3588864e2beb77432bd0dedc2
Author: Ian D <[email protected]>
Commit: Ian D <[email protected]>
Added has-property condition
* org-bat.el (org-bat-condition/has-property): New function.
---
org-bat.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/org-bat.el b/org-bat.el
index 23dd096..af4b828 100644
--- a/org-bat.el
+++ b/org-bat.el
@@ -387,6 +387,11 @@ IDS are all UUIDs as understood by `org-id-find'."
(when (org-bat--xor condition neg)
(format "%s %s= %s" var (or neg "=") val))))
+(defun org-bat-condition/has-property (neg prop val)
+ (let ((condition (string-equal (org-entry-get nil prop) val)))
+ (when (org-bat--xor condition neg)
+ (org-get-heading))))
+
(defun org-bat-transform-consideration (consideration)