Fixed bug with emacs daily-todos; chooses incorrect ID of multiple
This commit is contained in:
parent
cf31ba6c88
commit
9d2988672b
@ -14,8 +14,9 @@ These functions are for my org roam daily capture template.
|
|||||||
|
|
||||||
(defun jm/daily-todos-format-link ()
|
(defun jm/daily-todos-format-link ()
|
||||||
(let ((item-name (org-entry-get nil "ITEM"))
|
(let ((item-name (org-entry-get nil "ITEM"))
|
||||||
(item-id (car (org-property-values "ID"))))
|
(item-id (or (org-entry-get nil "ID")
|
||||||
(when item-id
|
(car (org-property-values "ID")))))
|
||||||
|
(when (stringp item-id)
|
||||||
(format "- [ ] [[id:%s][%s]]" item-id item-name))))
|
(format "- [ ] [[id:%s][%s]]" item-id item-name))))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user