From 86c908536320201b721c4805407be19c31f0dd54 Mon Sep 17 00:00:00 2001 From: Nicolas Chachereau Date: Wed, 12 Jan 2022 00:05:27 +0100 Subject: [PATCH] (fix)core: make 'fd and 'fdfind backend work for listing files (#2021) --- org-roam.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-roam.el b/org-roam.el index 72687c8..d57d322 100644 --- a/org-roam.el +++ b/org-roam.el @@ -279,8 +279,8 @@ E.g. (\".org\") => (\"*.org\" \"*.org.gpg\")" (defun org-roam--list-files-fd (executable dir) "Return all Org-roam files under DIR, using \"fd\", provided as EXECUTABLE." (let* ((globs (org-roam--list-files-search-globs org-roam-file-extensions)) - (extensions (string-join (mapcar (lambda (glob) (substring glob 2 -1)) globs) " -e ")) - (command (string-join `(,executable "-L" ,dir "--type file" ,extensions) " "))) + (extensions (string-join (mapcar (lambda (glob) (concat "-e " (substring glob 2 -1))) globs) " ")) + (command (string-join `(,executable "-L" "--type file" ,extensions "." ,dir) " "))) (org-roam--shell-command-files command))) (defalias 'org-roam--list-files-fdfind #'org-roam--list-files-fd)