diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-04 13:01:12 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-08-04 13:01:12 +0200 |
commit | 9444a7acc21fcde9a9055582a6adce62df790ae3 (patch) | |
tree | 0a3ea0f348a7e29a7e20cbf8be98876493d11206 /org-roam-ui.el | |
parent | 14b18cebe0f0055a611556011a70686dcc755334 (diff) |
feature: changed title format & default setting
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index 505785b..4cff4fa 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -102,7 +102,7 @@ This can lead to some jank." :group 'org-roam-ui :type 'boolean) -(defcustom org-roam-ui-find-ref-title nil +(defcustom org-roam-ui-find-ref-title t "Should org-roam-ui use `org-roam-bibtex' to try to find the title of a reference in the bibliography?" :group 'org-roam-ui :type 'boolean) @@ -171,7 +171,12 @@ loaded. Returns `ref' if an entry could not be found." (fboundp 'bibtex-completion-get-entry) (boundp 'orb-bibtex-entry-get-value-function)) (if-let ((entry (bibtex-completion-get-entry ref))) - (funcall orb-bibtex-entry-get-value-function "title" entry ref) + (concat + (funcall orb-bibtex-entry-get-value-function "author-abbrev" entry ref) + " (" + (funcall orb-bibtex-entry-get-value-function "year" entry ref) + ") " + (funcall orb-bibtex-entry-get-value-function "title" entry ref)) ref) ref)) |