branch: externals/org-gnosis
commit 52b7b4383053b88f98aae5b2651f4ad5e3d69a95
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
[fix] journal-find: Only use jounral-file for today's date.
---
org-gnosis.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/org-gnosis.el b/org-gnosis.el
index 12eac298d8..b23de1fa26 100644
--- a/org-gnosis.el
+++ b/org-gnosis.el
@@ -721,11 +721,12 @@ Returns a list of (ID TITLE BACKLINK-COUNT) for each
node."
(id (car (org-gnosis-select 'id 'journal `(= title ,title) t)))
(file (car (org-gnosis-select 'file 'journal `(= title ,title) t))))
(cond
- ((and org-gnosis-journal-file (not id))
- (org-gnosis-journal--add-entry title))
((and id file)
(org-gnosis-find
title file id org-gnosis-journal-dir org-gnosis-journal-templates))
+ ((and org-gnosis-journal-file
+ (string= title (format-time-string "%Y-%m-%d")))
+ (org-gnosis-journal--add-entry title))
(t
(org-gnosis--create-file
title org-gnosis-journal-dir