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-20260310.858/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)
              (concat directory
                      (string-remove-prefix "./" str)))
            (split-string
             (string-trim (shell-command-to-string cmd))
             "\n+"
             t))))