branch: externals/denote-org commit 9574e3ed4ebade9a7225f1fb49e0c431e0a9be63 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Tighten the regexp for sequence in org-dblock-write:denote-sequence This is in response to the question by Peter Prevos in issue 10: <https://github.com/protesilaos/denote-org/issues/10>. --- denote-org.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/denote-org.el b/denote-org.el index ce005b9886..845b966630 100644 --- a/denote-org.el +++ b/denote-org.el @@ -1010,8 +1010,7 @@ Used by `org-dblock-update' with PARAMS provided by the dynamic block." (let* ((block-name (plist-get params :block-name)) (sequence (plist-get params :sequence)) (depth (plist-get params :depth)) - ;; This will not work for people with bespoke `denote-file-name-components-order' - (parent (denote-directory-files (concat sequence "-"))) + (parent (denote-directory-files (format "\\<%s\\>" sequence))) (children (denote-sequence-get-relative sequence 'all-children)) (family (if children (append parent children)