Org-roam improvements

This commit is contained in:
Dimitri Lozeve 2023-02-01 14:27:38 +01:00
parent b3633be39e
commit c482754319

View file

@ -822,7 +822,7 @@
:config (citar-embark-mode))
(use-package org-roam
:straight t
:straight (:type git :flavor melpa :files (:defaults "extensions/*" "org-roam-pkg.el") :host github :repo "org-roam/org-roam" :branch "main")
:after org
:custom
(org-roam-directory (file-truename "~/notes/notes"))
@ -882,6 +882,12 @@
(deft-strip-summary-regexp ":PROPERTIES:\n\\(.+\n\\)+:END:\n")
(deft-use-filename-as-title t))
(defun dl/org-roam-rg-search ()
"Search org-roam directory using consult-ripgrep. With live-preview."
(interactive)
(let ((consult-ripgrep-command "rg --null --ignore-case --type org --line-buffered --color=always --max-columns=500 --no-heading --line-number . -e ARG OPTS"))
(consult-ripgrep org-roam-directory)))
(use-package graphviz-dot-mode
:straight t
:config