Skip to content

Commit

Permalink
README tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarcus committed Jul 4, 2022
1 parent 521e7dc commit b04dd2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ You can save this history across sessions by adding =citar-history= to =savehist

Citar uses a cache to speed up library display.
If a bib file changes, the cache will automatically update the next time you run a Citar command.

The =citar-cache-refresh= command will also reload the caches manually.
Note that cached data preformatted completion candidates are independently tracked by file.
So, for example, if you have one very large bibliography file that changes a lot, you might consider splitting into one large file that is more stable, and one-or-more smaller ones that change more frequently.

** Notes

Citar offers configurable note-taking and access integration.
The ~citar-notes-sources~ variable configures note backends, and ~citar-notes-source~ activates your chosen backend.
A backend primarily specifies functions to update the Citar display, to create the completion candidates, and to open existing and new notes.
See the docstrings for details.
See the ~citar-notes-sources~ docstring for details, and the =citar-register-note-source= and =citar-remove-note-source= convenience functions.

** Files, file association and file-field parsing

Expand Down
1 change: 1 addition & 0 deletions citar-file.el
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ need to scan the contents of DIRS in this case."

(defun citar-file-has-notes (&optional _entries)
"Return predicate testing whether cite key has associated notes."
;; REVIEW why this optional arg when not needed?
(let ((files (citar-file--get-notes-hash)))
(lambda (key)
(gethash key files))))
Expand Down
4 changes: 2 additions & 2 deletions citar.el
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ FILTER: if non-nil, should be a predicate function taking
(cl-defun citar-select-ref (&key filter)
"Select bibliographic references.
Call `citar-select-ref' with argument `:multiple'; see its
documentation for the return value."
Call 'citar-select-ref' with argument ':multiple, and optional
FILTER; see its documentation for the return value."
(car (citar-select-refs :multiple nil :filter filter)))

(defun citar--multiple-completion-table (selected-hash candidates filter)
Expand Down

0 comments on commit b04dd2b

Please sign in to comment.