(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:
Ron Parker
2022-03-10 19:07:39 -05:00
committed by GitHub
parent f6950a9820
commit c51cadfe25

View File

@ -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.