Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make citar-open-entry configurable #736

Closed
bdarcus opened this issue Mar 12, 2023 · 0 comments
Closed

Make citar-open-entry configurable #736

bdarcus opened this issue Mar 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bdarcus
Copy link
Contributor

bdarcus commented Mar 12, 2023

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)))
@bdarcus bdarcus added the enhancement New feature or request label Mar 12, 2023
@bdarcus bdarcus changed the title Add something like link types? Make citar-open-entry configurable Mar 13, 2023
bdarcus added a commit that referenced this issue Mar 13, 2023
* rename citar--open-entry to citar-open-entry-in-file
* add citar-open-entry-function defcustom
* modify citar-open-entry to use the above

These open functions only take a single argument, since the storage may
not be file based.

Close #736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant