branch: master commit 1fb6dcf56deda1e111892719c690bacdbe09bee0 Author: Ian D <du...@gnu.org> Commit: Ian D <du...@gnu.org>
Added chain action Chain will copy a given property from the old entry to its targets. * org-bat.el (org-bat-action/chain): New function. --- org-bat.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org-bat.el b/org-bat.el index 41c7627..2ecf883 100644 --- a/org-bat.el +++ b/org-bat.el @@ -374,6 +374,10 @@ IDS are all UUIDs as understood by `org-id-find'." (ignore last-entry) (org-archive-subtree-default-with-confirmation)) +(defun org-bat-action/chain (last-entry property) + (when-let ((old-prop (org-entry-get last-entry property))) + (org-entry-put nil property old-prop))) + ;; For most conditions, we return true if condition is true and neg is false, or