Use 'denote-directory' function for '#+link'

The function ensures that the path is always returned as a directory.

This commit builds on dfc3a8f.  Thanks to Jack Baty for recognising the
problem.
This commit is contained in:
Protesilaos Stavrou 2022-06-08 14:34:19 +03:00
parent 2eeedaf86a
commit eafc777268
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -300,7 +300,7 @@ TITLE, DATE, KEYWORDS, FILENAME, ID are all strings which are
"#+identifier: " id "\n"
"#+filename: " (string-remove-prefix denote-directory filename) "\n"
"#+path: " filename "\n"
"#+link: " "denote " denote-directory "%s"
"#+link: " "denote " (denote-directory) "%s"
"\n\n")))
(defun denote--path (title keywords)