diff --git a/org-roam-mode.el b/org-roam-mode.el index a13416c49..682b08cd9 100644 --- a/org-roam-mode.el +++ b/org-roam-mode.el @@ -672,7 +672,7 @@ References from FILE are excluded." (mapconcat (lambda (title) (format "|(\\b%s\\b)" (shell-quote-argument title))) titles "")) - org-roam-directory)) + (shell-quote-argument org-roam-directory))) (results (split-string (shell-command-to-string rg-command) "\n")) f row col match) (magit-insert-section (unlinked-references)