(feat): allow for symlinks in the org roam directory (#733)

This commit is contained in:
ulfl
2020-05-30 12:52:25 +02:00
committed by GitHub
parent 7200364d31
commit 47feff5a8b

View File

@ -328,7 +328,7 @@ E.g. (\".org\") => (\"*.org\" \"*.org.gpg\")"
"Return all Org-roam files located recursively within DIR, using elisp." "Return all Org-roam files located recursively within DIR, using elisp."
(let ((regex (concat "\\.\\(?:"(mapconcat #'regexp-quote org-roam-file-extensions "\\|" )"\\)\\(?:\\.gpg\\)?\\'")) (let ((regex (concat "\\.\\(?:"(mapconcat #'regexp-quote org-roam-file-extensions "\\|" )"\\)\\(?:\\.gpg\\)?\\'"))
result) result)
(dolist (file (directory-files-recursively dir regex) result) (dolist (file (directory-files-recursively dir regex nil nil t) result)
(when (and (file-readable-p file) (org-roam--org-file-p file)) (when (and (file-readable-p file) (org-roam--org-file-p file))
(push file result))))) (push file result)))))