emacs-citar / citar-org-roam

citar/org-roam integration
GNU General Public License v3.0
101 stars 9 forks source link

Providing additional fields of the bibtex entry #32

Closed trembel closed 1 year ago

trembel commented 1 year ago

This commit provides additional fields (author, year, type) to the capture template.

trembel commented 1 year ago

Please let me know if I should change the commit title, ... in order to conform with your style.

Best, trembel

bdarcus commented 1 year ago

Please let me know if I should change the commit title, ... in order to conform with your style.

I'll take another look at it in awhile. If I need to tweak the message, I'll just squash it.

bdarcus commented 1 year ago

Please let me know if I should change the commit title, ... in order to conform with your style.

No problem; I just squashed and modified it.

Thanks again!

I'm thinking as a next step I'll make this configurable.

bdarcus commented 1 year ago

OK, I think there remains an issue with title.

So org-roam has a :title property, which it uses to set the note title.

But users may independently want to incorporate citar title strings in their templates.

I suppose one option is to revert the removal of the template, and continue to use that for the former.

And then, I suppose, prefix our properties with citar-?

So we end with an info plist like (generated with the function I'm playing with; yeah I know it's wrong):

((:citekey "toly2017")
 (:citar-title "Brexit, Global Cities, and the Future of World Order")
 (:citar-author "Toly, Noah")
 (:citar-date "2017")
 (:citar-pages "142–149")
 (:citar-type "article"))

WDYT?