Closed bdarcus closed 1 year ago
Or maybe this should just be out-of-scope for this package, and room for other note packages that make use of citar?
This; I think everything is here for it to be easy for third-party packages to do this.
Trying to figure this out for citar-org-roam
here:
We already allow this for copying formatted references; maybe we should extend this to elsewhere, most obviously note title formatting.
If yes, how to configure it?
Background
Currently, we have these relevant defcustoms:
citar-format-reference-function
: this specifies which function to use forcitar-copy-reference
andcitar-insert-reference
citar-templates
is an alist of a symbol and a citar template string, which includesnote
and (for 1)preview
templates.So if you use
citar-citeproc-format-reference
for 1, you bypass 2.Possible solutions
I'm not very fond of any of these, though lean towards 3, since it's the most flexible, and also fits with the new structure of
citar-display-transform-functions
:citar-format-note-title-function
to 1 above.:title
property to the citar notes sources plist spec?citar-templates
so that the cdr of the cons cells can either be a string (as now), or a function symbol; could maybe delete 1 above then? Something like:Two had just occurred to me, but not sure it's ideal, as notes titles are more user-scoped, notes sources are more about clusters of functionality and packages.
Here's another possiblity, which may be cleaner?
Or maybe this should just be out-of-scope for this package, and room for other note packages that make use of citar?