Function: projectile-find-references
projectile-find-references is an interactive and byte-compiled
function defined in projectile.el.
Signature
(projectile-find-references &optional SYMBOL)
Documentation
Find all references to SYMBOL in the current project.
A thin wrapper around xref-references-in-directory scoped to the
project root.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-find-references (&optional symbol)
"Find all references to SYMBOL in the current project.
A thin wrapper around `xref-references-in-directory' scoped to the
project root."
(interactive)
(let* ((project-root (projectile-acquire-root))
(symbol (or symbol (read-from-minibuffer "Lookup in project: " (projectile-symbol-at-point))))
(fetcher (lambda () (xref-references-in-directory symbol project-root))))
(cond
((fboundp 'xref-show-xrefs)
(xref-show-xrefs fetcher nil))
((fboundp 'xref--show-xrefs)
(xref--show-xrefs fetcher nil))
(t (error "No suitable xref display function available")))))