projectile icon indicating copy to clipboard operation
projectile copied to clipboard

Fixing projectile-replace to respect .projectile

Open palikar opened this issue 5 years ago • 5 comments

#1227 is a long standing issue and I've decided to give it a go. Previously the commands that are finding files with a certain pattern in them were ran on the entire project. Now I've modified the commands slightly so that they only check the files that are not ignored because of the .projectile file.

I am not sure if this is the best way to implement this. Feedback and other opinions will be welcomed.


  • [x] The commits are consistent with our contribution guidelines
  • [ ] You've added tests (if possible) to cover your change(s)
  • [x] All tests are passing (make test)
  • [x] The new code is not generating bytecode or M-x checkdoc warnings
  • [x] You've updated the changelog (if adding/changing user-visible functionality)
  • [ ] You've updated the readme (if adding/changing user-visible functionality)

palikar avatar May 19 '20 14:05 palikar

I think it'd better to try to pass some ignores/includes to ag, then all the project files explicitly, as fetching the list, stitching it together and breaking it apart will probably rather slow.

bbatsov avatar Jun 15 '20 21:06 bbatsov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!

stale[bot] avatar Dec 13 '20 01:12 stale[bot]

Any updates/possible workarounds? It would be really useful to have it fixed but my lisp knowledge is quite limited.

orlandini avatar Apr 21 '21 12:04 orlandini

I think a better solution would be pass the ignored stuff to the various tools as parameters, but this will be more involved in terms of code. The proposed solution will work fairly well on small projects, but will be extremely slow on something big.

bbatsov avatar May 24 '21 12:05 bbatsov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!

stale[bot] avatar Apr 16 '22 08:04 stale[bot]

This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it.

stale[bot] avatar Sep 21 '22 05:09 stale[bot]