diff --git a/modules/completion/selectrum/TODO.org b/modules/completion/selectrum/TODO.org index 555635ac0..94dbd3a20 100644 --- a/modules/completion/selectrum/TODO.org +++ b/modules/completion/selectrum/TODO.org @@ -26,9 +26,10 @@ https://github.com/minad/marginalia/issues/59 - org (check, might be fine) - counsel-minibuffer-history analogue - counsel-company analogue -- bibtex * PROJ Other ** TODO bind =consult-lsp-diagnostics= to something? -** TODO test out bibtex-actions, check if more configuration should be added -https://github.com/bdarcus/bibtex-actions - . +** TODO bibtex-actions improvements? +currently =SPC n b= is bound to a function, but =bibtex-actions= doesn't have a +main dispatch function like =ivy-bibtex=, rather it has a bunch of different +ones. Binding the ~bibtex-actions-map~ there would probably be better, but there +are nontrivial loading order shinanigans happening that make that not straightforward. diff --git a/modules/config/default/+emacs-bindings.el b/modules/config/default/+emacs-bindings.el index 1d23d90ea..4f0d0464e 100644 --- a/modules/config/default/+emacs-bindings.el +++ b/modules/config/default/+emacs-bindings.el @@ -148,8 +148,9 @@ :desc "Org agenda" "a" #'org-agenda (:when (featurep! :tools biblio) :desc "Bibliographic entries" "b" - (cond ((featurep! :completion ivy) #'ivy-bibtex) - ((featurep! :completion helm) #'helm-bibtex))) + (cond ((featurep! :completion ivy) #'ivy-bibtex) + ((featurep! :completion helm) #'helm-bibtex) + ((featurep! :completion selectrum) #'bibtex-actions-open-entry))) :desc "Toggle last org-clock" "c" #'+org/toggle-last-clock :desc "Cancel current org-clock" "C" #'org-clock-cancel diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 945c5b8c1..33577fd5c 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -513,8 +513,9 @@ :desc "Org agenda" "a" #'org-agenda (:when (featurep! :tools biblio) :desc "Bibliographic entries" "b" - (cond ((featurep! :completion ivy) #'ivy-bibtex) - ((featurep! :completion helm) #'helm-bibtex))) + (cond ((featurep! :completion ivy) #'ivy-bibtex) + ((featurep! :completion helm) #'helm-bibtex) + ((featurep! :completion selectrum) #'bibtex-actions-open-entry))) :desc "Toggle last org-clock" "c" #'+org/toggle-last-clock :desc "Cancel current org-clock" "C" #'org-clock-cancel diff --git a/modules/tools/biblio/config.el b/modules/tools/biblio/config.el index 7f1fa22b7..43dbd27c7 100644 --- a/modules/tools/biblio/config.el +++ b/modules/tools/biblio/config.el @@ -16,6 +16,7 @@ (use-package! bibtex-actions :when (featurep! :completion selectrum) + :after embark :defer t :config (add-to-list 'embark-keymap-alist '(bibtex . bibtex-actions-map)))