From cc2c2d60c598768d3acbbd749470eaed06e7ed5d Mon Sep 17 00:00:00 2001 From: Misaka Date: Tue, 21 May 2024 20:28:11 +0800 Subject: [PATCH] Add more actions to org related hydra --- cats/+org-roam.el | 8 +++++++- cats/+org.el | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cats/+org-roam.el b/cats/+org-roam.el index b7c17ae..6c4a0f3 100644 --- a/cats/+org-roam.el +++ b/cats/+org-roam.el @@ -23,8 +23,14 @@ (("r" org-roam-buffer-toggle "toggle") ("e" org-roam-extract-subtree "extract") ("R" cat-org-roam-relocate-file "relocate")) + "Alias" + (("aa" #'org-roam-alias-add "add alias") + ("da" #'org-roam-alias-remove "remove alias")) "BibTex" - (("b" orb-note-actions "orb action")))) + (("b" orb-note-actions "orb action")) + "Reference" + (("ar" #'org-roam-ref-add "add ref") + ("dr" #'org-roam-ref-remove "remove ref")))) :config (+mkdir-p cat-org-roam-directory) (org-roam-db-autosync-mode) diff --git a/cats/+org.el b/cats/+org.el index 6e99d39..750cc4b 100644 --- a/cats/+org.el +++ b/cats/+org.el @@ -53,7 +53,8 @@ (org-mode (:title (+with-icon "nf-custom-orgmode" "Org Mode")) ("Notes" - (("r" org-roam-hydra/body "roam") + (("i" #'org-id-get-create "id") + ("r" org-roam-hydra/body "roam") ("n" org-noter "noter") ("m" org-media-note-hydra/body "media")) "SRS"