Skip to content

feat(biblio): add citar-org-roam #6728

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/config/default/+emacs-bindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
:desc "Search notes for symbol" "." #'+default/search-notes-for-symbol-at-point
:desc "Org agenda" "a" #'org-agenda
(:when (modulep! :tools biblio)
:desc "Bibliographic entries" "b"
(cond ((modulep! :completion vertico) #'citar-open-entry)
:desc "Bibliographic notes" "b"
(cond ((modulep! :completion vertico) #'citar-open-notes)
((modulep! :completion ivy) #'ivy-bibtex)
((modulep! :completion helm) #'helm-bibtex)))

Expand Down
4 changes: 2 additions & 2 deletions modules/config/default/+evil-bindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@
:desc "Search notes for symbol" "*" #'+default/search-notes-for-symbol-at-point
:desc "Org agenda" "a" #'org-agenda
(:when (modulep! :tools biblio)
:desc "Bibliographic entries" "b"
(cond ((modulep! :completion vertico) #'citar-open-entry)
:desc "Bibliographic notes" "b"
(cond ((modulep! :completion vertico) #'citar-open-notes)
((modulep! :completion ivy) #'ivy-bibtex)
((modulep! :completion helm) #'helm-bibtex)))

Expand Down
13 changes: 7 additions & 6 deletions modules/tools/biblio/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ selected so it should be possible to use without modifications.
/This module has no flags./

** Packages
- [[doom-package:bibtex-completion]] if [[doom-module::completion ivy]] or [[doom-module::completion helm]]
- [[doom-package:parsebib]] if [[doom-module::completion ivy]] or [[doom-module::completion helm]] or [[doom-module::completion vertico]]
- [[doom-package:citar]] if [[doom-module::completion vertico]]
- [[doom-package:citar-embark]] if [[doom-module::completion vertico]]
- [[doom-package:helm-bibtex]] if [[doom-module::completion helm]]
- [[doom-package:ivy-bibtex]] if [[doom-module::completion ivy]]
- [[doom-package:][bibtex-completion]] if [[doom-module:][:completion ivy]] or [[doom-module:][:completion helm]]
- [[doom-package:][parsebib]] if [[doom-module:][:completion ivy]] or [[doom-module:][:completion helm]] or [[doom-module:][:completion vertico]]
- [[doom-package:][citar]] if [[doom-module:][:completion vertico]]
- [[doom-package:][citar-embark]] if [[doom-module:][:completion vertico]]
- [[doom-package:][citar-org-roam]] if [[doom-module:][:completion vertico]] and [[doom-module:][:lang org +roam2]]
- [[doom-package:][helm-bibtex]] if [[doom-module:][:completion helm]]
- [[doom-package:][ivy-bibtex]] if [[doom-module:][:completion ivy]]

** Hacks
/No hacks documented for this module./
Expand Down
5 changes: 5 additions & 0 deletions modules/tools/biblio/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
:after citar embark
:config (citar-embark-mode))

(use-package! citar-org-roam
:when (modulep! :completion vertico)
:after citar org-roam
:config (citar-org-roam-mode))

;; `org-cite' processors
(use-package! oc-biblatex :after oc)
(use-package! oc-csl :after oc)
Expand Down
18 changes: 10 additions & 8 deletions modules/tools/biblio/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
;;; tools/biblio/packages.el

(when (modulep! :completion ivy)
(package! bibtex-completion :pin "ce8c17690ddad73d01531084b282f221f8eb6669")
(package! ivy-bibtex :pin "ce8c17690ddad73d01531084b282f221f8eb6669"))
(package! bibtex-completion :pin "78f5931e1cc82e7ae2bcf0508cf31d0d1629a8dd")
(package! ivy-bibtex :pin "78f5931e1cc82e7ae2bcf0508cf31d0d1629a8dd"))
(when (modulep! :completion helm)
(package! bibtex-completion :pin "ce8c17690ddad73d01531084b282f221f8eb6669")
(package! helm-bibtex :pin "ce8c17690ddad73d01531084b282f221f8eb6669"))
(package! bibtex-completion :pin "78f5931e1cc82e7ae2bcf0508cf31d0d1629a8dd")
(package! helm-bibtex :pin "78f5931e1cc82e7ae2bcf0508cf31d0d1629a8dd"))
(when (modulep! :completion vertico)
(package! citar :pin "146f2cb5a31d4968ec17f39f189e4ea131ccaf56")
(package! citar-embark :pin "146f2cb5a31d4968ec17f39f189e4ea131ccaf56"))
(package! citar :pin "4a302fcc405d9747ab74df0e95a01ea489fa9bdd")
(package! citar-embark :pin "4a302fcc405d9747ab74df0e95a01ea489fa9bdd")
(when (modulep! :lang org +roam2)
(package! citar-org-roam :pin "27105d0a9578279560cd79cfad5871e7e603bc58")))

(package! parsebib :pin "175a1bdac1eabc7415116c8722795a1155e2d2c9")
(package! citeproc :pin "406bd9964f1ce531fc45beddcf9ccc44d3456129")
(package! parsebib :pin "1efca921cbb49380396df9d81308b32e55fc8b63")
(package! citeproc :pin "e705911a29abcfc49d4435c538e88835074e4ef4")