Function: projectile-replace--keep-matches

projectile-replace--keep-matches is an interactive and byte-compiled function defined in projectile.el.

Signature

(projectile-replace--keep-matches REGEXP)

Documentation

Keep only matches whose context line matches REGEXP.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--keep-matches (regexp)
  "Keep only matches whose context line matches REGEXP."
  (interactive (list (read-regexp "Keep matches whose line matches regexp")))
  (projectile-replace--filter-by
   (lambda (m) (projectile-replace--line-matches-p m regexp))))