You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the notes API to enable more general functionality (see #518),
and tighter integration with note-taking packages like org-roam (see #602).
- Add citar-keys-with-notes-functions defcustom.
- Rename citar-open-notes-function to citar-open-notes-functions; make a list.
- Refactor citar-open-notes to make use of the above
- Add some convenience functions for working with these data.
Close#601
Copy file name to clipboardExpand all lines: README.org
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,15 +267,21 @@ For additional configuration options on this, see [[https://github.com/bdarcus/c
267
267
268
268
** Notes
269
269
270
-
Citar provides a ~citar-format-note-function~ variable, and a default function for org, which also works well with org-roam (v2 now supports org-cite).
270
+
Citar provides a ~citar-create-note-function~ variable, and a default function for org, which also works well with org-roam (v2 now supports org-cite).
271
271
You can configure the title display using the "note" template.
272
272
273
-
You can also use the ~citar-open-note-function~ variable to replace the default with another; for example from org-roam-bibtex:
273
+
You can also use the ~citar-open-note-functions~ variable to replace or augment the default with another; for example from org-roam-bibtex:
Since ~citar-open-note-functions~ is a list, you can also include multiple functions, to handle different note scenarios.
280
+
281
+
Citar also includes a ~citar-keys-with-notes-functions~ variable, which specifies a list of functions, each of which returns a list of keys that have associated notes.
282
+
This function allows Citar to correctly format the completion UI candidates.
283
+
The default function only supports one-file-per-key notes.
284
+
279
285
** Files, file association and file-field parsing
280
286
281
287
If you have ~citar-library-paths~ set, the relevant open commands will look in those directories for file names of =CITEKEY.EXTENSION=.
0 commit comments