Skip to content

Comments

Filter projectile-replace results through project ignore rules#1980

Open
bbatsov wants to merge 1 commit intomasterfrom
feature/1227-replace-respects-ignores
Open

Filter projectile-replace results through project ignore rules#1980
bbatsov wants to merge 1 commit intomasterfrom
feature/1227-replace-respects-ignores

Conversation

@bbatsov
Copy link
Owner

@bbatsov bbatsov commented Feb 15, 2026

  • projectile-replace now filters the files found by external search tools (rg/ag/grep) through the project's file list (projectile-dir-files), ensuring that files ignored via .projectile or other ignore rules are excluded from replacement
  • Previously, external tools searched the filesystem directly, which could include backup files (*~), build artifacts, and other entries that .projectile is configured to exclude
  • This matches how projectile-replace-regexp already works (it uses projectile-dir-files as its file source)

Closes #1227

Closes #1227

projectile-replace now intersects the files found by rg/ag/grep with
the project's file list from projectile-dir-files, ensuring that files
ignored via .projectile or other ignore rules are excluded from
replacement. Previously the external search tool's results were used
directly, which could include backup files and other ignored entries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

projectile-replace does not respect .projectile file

1 participant