branch: externals/denote commit 66e455ef844a71a6936963bbe803fc3e2f4cc3a2 Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com> Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Fix denote--current-file-is-note-p for subdirectories --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index 21a8ce19ac..26f0168c34 100644 --- a/denote.el +++ b/denote.el @@ -327,7 +327,7 @@ FILE must be an absolute path." "Return non-nil if current file likely is a Denote note." (and (or (string-match-p denote--id-regexp (buffer-file-name)) (string-match-p denote--id-regexp (buffer-name))) - (string= (expand-file-name default-directory) (denote-directory)))) + (string-prefix-p (denote-directory) (expand-file-name default-directory)))) ;;;; Keywords