diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index a56ee0b2b..bfbee4b28 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -475,11 +475,17 @@ (:when (featurep! :lang org +roam) (:prefix ("r" . "roam") - :desc "Org Roam" "r" #'org-roam :desc "Switch to buffer" "b" #'org-roam-switch-to-buffer - :desc "Insert" "i" #'org-roam-insert + :desc "Org Roam Capture" "c" #'org-roam-capture :desc "Find file" "f" #'org-roam-find-file - :desc "Show graph" "g" #'org-roam-graph-show)) + :desc "Show graph" "g" #'org-roam-graph-show + :desc "Insert" "i" #'org-roam-insert + :desc "Org Roam" "r" #'org-roam + (:prefix ("d" . "by date") + :desc "Arbitrary date" "d" #'org-roam-date + :desc "Today" "t" #'org-roam-today + :desc "Tomorrow" "m" #'org-roam-tomorrow + :desc "Yesterday" "y" #'org-roam-yesterday))) (:when (featurep! :lang org +journal) (:prefix ("j" . "journal") diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index 58a3fe03a..5fb55a917 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -3,10 +3,15 @@ (use-package! org-roam :commands (org-roam - org-roam-insert + org-roam-capture + org-roam-date org-roam-find-file + org-roam-graph-show + org-roam-insert org-roam-switch-to-buffer - org-roam-graph-show) + org-roam-today + org-roam-tomorrow + org-roam-yesterday) :preface ;; Set this to nil so we can later detect whether the user has set a custom ;; directory for it, and default to `org-directory' if they haven't. @@ -16,12 +21,16 @@ :map org-mode-map :localleader :prefix ("m" . "org-roam") - "m" #'org-roam - "i" #'org-roam-insert "b" #'org-roam-switch-to-buffer "f" #'org-roam-find-file "g" #'org-roam-graph-show - "i" #'org-roam-insert) + "i" #'org-roam-insert + "m" #'org-roam + (:prefix ("d" . "by date") + :desc "Arbitrary date" "d" #'org-roam-date + :desc "Today" "t" #'org-roam-today + :desc "Tomorrow" "m" #'org-roam-tomorrow + :desc "Yesterday" "y" #'org-roam-yesterday)) :config (unless org-roam-directory (setq org-roam-directory org-directory))