emacs-citar / citar

Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents.
GNU General Public License v3.0
502 stars 54 forks source link

Make `citar-open-entry` configurable #736

Closed bdarcus closed 1 year ago

bdarcus commented 1 year ago

Instead of only opening entries in bibtex and such files, also allow Zotero, (ebib?), etc.

Would require:

  1. changing citar--open-entry to citar--open-entry-in-file
  2. adding a defcustom for the function symbol, which defaults to 1
  3. modifying citar-open-entry to use 2
  4. adding a function to open zotero select links:
(defun citar-open-entry-in-zotero (citekey)
  "Open a reference item in Zotero/Better BibTeX.

This function assumes a setup where the bibliography files are 
maintained in Zotero, including the citekeys."
  (citar-file-open-external
   (concat "zotero://select/items/@" citekey)))