Function: org-roam--list-files-rg

org-roam--list-files-rg is a byte-compiled function defined in org-roam.el.

Signature

(org-roam--list-files-rg EXECUTABLE DIR)

Documentation

Return all Org-roam files under DIR, using "rg", provided as EXECUTABLE.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam.el
(defun org-roam--list-files-rg (executable dir)
  "Return all Org-roam files under DIR, using \"rg\", provided as EXECUTABLE."
  (let* ((globs (org-roam--list-files-search-globs org-roam-file-extensions))
         (command (string-join `(
                                 ,executable "-L" ,dir "--files"
                                 ,@(mapcar (lambda (glob) (concat "-g " glob)) globs)) " ")))
    (org-roam--shell-command-files command)))