branch: externals/denote
commit 2add39ecd7a9613e304ddab3846f3a5a072f200a
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Support signature links in denote-org-dblock--get-file-contents
---
denote-org-dblock.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/denote-org-dblock.el b/denote-org-dblock.el
index 913942bcb2..5b4466d9fe 100644
--- a/denote-org-dblock.el
+++ b/denote-org-dblock.el
@@ -153,7 +153,10 @@ argument."
(if (eq add-links 'id-only)
denote-id-only-link-format
denote-org-link-format)
- nil))))
+ (let ((type (denote-filetype-heuristics file)))
+ (if (denote-file-has-signature-p file)
+ (denote--link-get-description-with-signature file type)
+ (denote--link-get-description file type)))))))
(let ((beginning-of-contents (point)))
(insert-file-contents file)
(when no-front-matter