mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix)core: fix broken shell-based file listing methods (#2118)
Change #2025 broke the `org-roam--shell-command-files` filter that affects all of the `org-roam-list-files-command` methods except `elisp`. This causes `org-roam--list-files` to iterate through the variants executing their commands via `org-roam--shell-command-files` but to not see any output, until it finally lands upon `elisp` and gets some results. The issue is that "#'s-present?" was replaced by (or (null s) (string= "" s)) effectively negating the test and converting it to "#'s-blank?". This addresses that by negating the current test.
This commit is contained in:
@ -260,7 +260,7 @@ If no files are found, an empty list is returned."
|
||||
(ansi-color-filter-apply it)
|
||||
(split-string it "\n")
|
||||
(seq-filter (lambda (s)
|
||||
(or (null s) (string= "" s))) it)))
|
||||
(not (or (null s) (string= "" s)))) it)))
|
||||
|
||||
(defun org-roam--list-files-search-globs (exts)
|
||||
"Given EXTS, return a list of search globs.
|
||||
|
Reference in New Issue
Block a user