Function: projectile--find-file-of-kind
projectile--find-file-of-kind is a byte-compiled function defined in
projectile.el.
Signature
(projectile--find-file-of-kind KIND-ENTRY &optional FF-VARIANT)
Documentation
Complete over project files of KIND-ENTRY and open the chosen one.
KIND-ENTRY is a (KIND . SPEC) pair. With FF-VARIANT set to a defun, use
that instead of find-file (e.g. find-file-other-window).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--find-file-of-kind (kind-entry &optional ff-variant)
"Complete over project files of KIND-ENTRY and open the chosen one.
KIND-ENTRY is a (KIND . SPEC) pair. With FF-VARIANT set to a defun, use
that instead of `find-file' (e.g. `find-file-other-window')."
(let* ((project-root (projectile-acquire-root))
(spec (cdr kind-entry))
(files (seq-filter (lambda (f)
(projectile--file-kind-member-p f spec))
(projectile-project-files project-root)))
(file (projectile-completing-read
(format "Find %s: " (projectile--file-kind-name (car kind-entry)))
files
:caller 'projectile-find-file-of-kind
:sort-function (projectile--frecency-sort-function project-root)))
(ff (or ff-variant #'find-file)))
(when file
(funcall ff (expand-file-name file project-root))
(run-hooks 'projectile-find-file-hook))))