calibredb.el icon indicating copy to clipboard operation
calibredb.el copied to clipboard

Add "calibredb-library-manipulated-hook" for users of BibTeX or related formats

Open yaqubroli opened this issue 1 year ago • 0 comments

What the title says. Basically, I have a function that automatically exports my Calibre library to a BibTeX file, and I think it'd be a good idea to add a hook to trigger it whenever I add or remove a book from within emacs:

(defun yaqub/calibredb-export-bibtex ()
  (interactive)
  (let ((bibtex-command "calibredb catalog ~/Books/References.bib"))
    (shell-command bibtex-command)))

I think this would be a good idea for users of plugins such as citar, helm- and ivy-bibtex, and org-roam-bibtex. I might make a PR today for this.

yaqubroli avatar Aug 21 '23 22:08 yaqubroli