[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1fb6dcf 013/135: Added chain action
From: |
Ian Dunn |
Subject: |
[elpa] master 1fb6dcf 013/135: Added chain action |
Date: |
Mon, 17 Feb 2020 10:52:44 -0500 (EST) |
branch: master
commit 1fb6dcf56deda1e111892719c690bacdbe09bee0
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
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
- [elpa] master updated (487ad1b -> bf8ecda), Ian Dunn, 2020/02/17
- [elpa] master 567e982 007/135: Added package requirements, Ian Dunn, 2020/02/17
- [elpa] master a943aa6 008/135: Added more custom IDs to documentation, Ian Dunn, 2020/02/17
- [elpa] master 21d2019 006/135: Added has-property condition, Ian Dunn, 2020/02/17
- [elpa] master 0e5fd41 004/135: Added .bzrignore., Ian Dunn, 2020/02/17
- [elpa] master 3a4cca9 003/135: Added Makefile., Ian Dunn, 2020/02/17
- [elpa] master 01c50c0 002/135: Make all finders return lists of markers, Ian Dunn, 2020/02/17
- [elpa] master 5010097 005/135: Added initial documentation, Ian Dunn, 2020/02/17
- [elpa] master 18814ca 001/135: Initial Commit., Ian Dunn, 2020/02/17
- [elpa] master 1fb6dcf 013/135: Added chain action,
Ian Dunn <=
- [elpa] master ad75461 017/135: Use existing org-xor instead of new function, Ian Dunn, 2020/02/17
- [elpa] master adbff7e 019/135: Remove duplicate targets, Ian Dunn, 2020/02/17
- [elpa] master 6886b8a 026/135: Fixed chain-find, Ian Dunn, 2020/02/17
- [elpa] master 55283ff 015/135: Renamed to Org-Edna., Ian Dunn, 2020/02/17
- [elpa] master d348102 025/135: Added file for tests, Ian Dunn, 2020/02/17
- [elpa] master 71cdc0a 027/135: Fixed parsing bug, Ian Dunn, 2020/02/17
- [elpa] master 6b9a676 031/135: Added documentation for each condition, Ian Dunn, 2020/02/17
- [elpa] master 71e00e4 036/135: Fixed consideration handling, Ian Dunn, 2020/02/17
- [elpa] master 9f27779 014/135: Clarified use of case-fold-search in `org-bat--handle-planning', Ian Dunn, 2020/02/17
- [elpa] master 13e752b 021/135: Fix uses of substring, Ian Dunn, 2020/02/17