(fix): files not excluded when org-roam-list-files-commands is nil (#1542)

This commit is contained in:
Kisaragi Hiu
2021-06-09 21:07:47 +09:00
committed by GitHub
parent 8ad1414030
commit 53c9a16e90
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@
- [#1375](https://github.com/org-roam/org-roam/pull/1375) fix org-roam-protocol to use existing ref file
- [#1403](https://github.com/org-roam/org-roam/issues/1403) fixed inconsistency between how we write and read props like alias and tags
- [#1409](https://github.com/org-roam/org-roam/issues/1398) prevent inclusion of non-org-roam files in `org-roam-dailies--list-files`
- [#1542](https://github.com/org-roam/org-roam/issues/1542) fix files not excluded when `org-roam-list-files-commands` is nil
## 1.2.3 (13-11-2020)

View File

@ -485,7 +485,8 @@ recursion."
(let ((regex (concat "\\.\\(?:"(mapconcat #'regexp-quote org-roam-file-extensions "\\|" )"\\)\\(?:\\.gpg\\)?\\'"))
result)
(dolist (file (org-roam--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-roam-file-p file))
(push file result)))))
(defun org-roam--list-files (dir)