Function: projectile-files-from-cmd
projectile-files-from-cmd is a byte-compiled function defined in
projectile.el.
Signature
(projectile-files-from-cmd CMD DIRECTORY)
Documentation
Use a grep-like CMD to search for files within DIRECTORY.
CMD should include the necessary search params and should output equivalently to grep -HlI (only unique matching filenames). Returns a list of expanded filenames.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-files-from-cmd (cmd directory)
"Use a grep-like CMD to search for files within DIRECTORY.
CMD should include the necessary search params and should output
equivalently to grep -HlI (only unique matching filenames).
Returns a list of expanded filenames."
(let ((default-directory directory))
(mapcar (lambda (str)
;; `expand-file-name' (rather than `concat') so the results
;; are in canonical form even when DIRECTORY is abbreviated
;; (e.g. "~/project/"), and thus comparable with other
;; expanded file names (#1115).
(expand-file-name str directory))
(split-string
(string-trim (shell-command-to-string cmd))
"\n+"
t))))