branch: externals/denote-journal
commit 487a2f09598a8fda7d009117d1adb132fa68a850
Author: Vineet C. Kulkarni <[email protected]>
Commit: GitHub <[email protected]>
fixes journal file selection fails when journal is not the first/only tag
instead of matching `__journal` it should be matched with `_journal` only
---
denote-journal.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/denote-journal.el b/denote-journal.el
index b19c581f5a..f2348c2d63 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -194,8 +194,8 @@ DATE has the same format as that returned by
`denote-valid-date-p'."
(id-index (seq-position order 'identifier))
(kw-index (seq-position order 'keywords)))
(if (> kw-index id-index)
- (format "%s.*?_%s" identifier (denote-journal--keyword-regex))
- (format "_%s.*?@@%s" (denote-journal--keyword-regex) identifier))))
+ (format "%s.*?%s" identifier (denote-journal--keyword-regex))
+ (format "%s.*?@@%s" (denote-journal--keyword-regex) identifier))))
(defun denote-journal--entry-today (&optional date)
"Return list of files matching a journal for today or optional DATE.