Commit 1f65b392 authored by Victor A. Stoichiţă's avatar Victor A. Stoichiţă
Browse files

add noter property to reading list template

parent a7034cb2
......@@ -71,7 +71,7 @@
(setq ebib-file-associations '(("docx" . "soffice") ("odt" . "soffice")("doc" . "soffice")))
(setq ebib-reading-list-file "~/bib/ReadingList.org"
ebib-reading-list-todo-marker "LIRE"
ebib-reading-list-template "* %T :lire:\n:PROPERTIES:\n%K\n:END:\n%L\n")
ebib-reading-list-template "* %M %T :lire:\n:PROPERTIES:\n%K\n%N\n:END:\n%L\n")
(defun vic/ebib-author-year-title-description (key db)
"Provide an author/year + title description for an Org Ebib link.
......@@ -90,6 +90,10 @@ database that contains the entry."
;; %N specifier: Org noter
'(78 . vic/ebib-create-org-noter-id))
(add-to-list 'ebib-reading-list-template-specifiers
;; %N specifier: Org noter
'(78 . vic/ebib-create-org-noter-id))
(add-to-list 'ebib-notes-template-specifiers
;; %G specifier: tags
'(71 . vic/ebib-create-note-tags))
......
......@@ -69,7 +69,7 @@ Version 2015-06-08"
(defun vic/ebib-create-org-noter-id (key db)
"Create an org-noter property linking to the first pdf file in entry KEY in DB. If an annotated file exists according to `vic/pdf-annotated-filename-regexp' it is preferred. If `file' is empty or has no pdf file, return the empty string."
(let ((files-with-props (ebib-get-field-value "file" key db 'noerror 'unbraced 'xref))
(noter-property org-noter-property-doc-file)
(noter-property org-noter-property-doc-file)
(pdf-ext "\.pdf$")
(annotated vic/pdf-annotated-filename-regexp)
(file))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment