mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Improve defaults when extracting fields from online reference in khoj.el
This commit is contained in:
parent
9262aea7a5
commit
59032a06d5
1 changed files with 3 additions and 3 deletions
|
@ -962,9 +962,9 @@ RECEIVE-DATE is the message receive date."
|
|||
(defun khoj--generate-online-reference (reference)
|
||||
"Create `org-mode' footnotes for online REFERENCE."
|
||||
(setq khoj--reference-count (1+ khoj--reference-count))
|
||||
(let ((link (cdr (assoc 'link reference)))
|
||||
(title (cdr (assoc 'title reference)))
|
||||
(description (cdr (assoc 'description reference))))
|
||||
(let* ((link (cdr (assoc 'link reference)))
|
||||
(title (or (cdr (assoc 'title reference)) link))
|
||||
(description (or (cdr (assoc 'description reference)) title)))
|
||||
(cons
|
||||
(propertize (format "^{ [fn:%x]}" khoj--reference-count) 'help-echo (format "%s\n%s" link description))
|
||||
(thread-last
|
||||
|
|
Loading…
Add table
Reference in a new issue