From cdf1a56a8a001ddcbd72fc64fc1248e2997dc7d4 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 9 Jun 2025 16:57:07 +0200 Subject: 1. Attempt to use the book's title instead of the filename for the link description. 2. Set the initial text of the captured note to the description of the book (if available). 3. Make the author, language, and publisher available in the stored link properties so we can use them from capture templates (via "%:author", etc.). --- nov.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nov.el b/nov.el index 6d66746..db3aedd 100644 --- a/nov.el +++ b/nov.el @@ -1023,10 +1023,15 @@ See also `nov-bookmark-make-record'." nov-file-name nov-documents-index (point))) - (description (format "EPUB file at %s" nov-file-name))) + (description (or (alist-get 'title nov-metadata) + (format "EPUB file at %s" nov-file-name)))) (funcall org-store-props-function :type "nov" :link link + :author (alist-get 'creator nov-metadata) + :language (alist-get 'language nov-metadata) + :initial (alist-get 'description nov-metadata) + :publisher (alist-get 'publisher nov-metadata) :description description)))) (cond -- cgit v1.2.3