Function: projectile-search--to-replace
projectile-search--to-replace is an interactive and byte-compiled
function defined in projectile.el.
Signature
(projectile-search--to-replace)
Documentation
Hand the current search to the reviewable replace UI.
Carries over the same term, literal-ness and case setting and prompts
only for the replacement. The project is re-scanned from scratch (so
any filtering is undone and every match comes back enabled), mirroring
projectile-replace-review.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-search--to-replace ()
"Hand the current search to the reviewable replace UI.
Carries over the same term, literal-ness and case setting and prompts
only for the replacement. The project is re-scanned from scratch (so
any filtering is undone and every match comes back enabled), mirroring
`projectile-replace-review'."
(interactive)
(let* ((root projectile-replace--root)
(projects projectile-replace--projects)
(term projectile-replace--term)
(literal projectile-replace--literal)
(case-fold projectile-replace--case-fold)
(word projectile-replace--word)
(regexp projectile-replace--search)
(replacement (read-string
(projectile-prepend-project-name
(format "Replace %s with: " term))))
(candidates (projectile-replace--candidates term literal case-fold projects)))
(projectile-replace--open
#'projectile-replace-mode projectile-replace-buffer-name
root term regexp replacement literal case-fold candidates
(projectile-prepend-project-name (format "No matches for %s" term))
word nil projects)))