practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
110 stars 33 forks source link

Refactoring across project files #79

Open practicalli-johnny opened 5 years ago

practicalli-johnny commented 5 years ago

Get search results via SPC / search string SPC p S search string (scopes inculde - p for project, d for directory, etc..)

C-c C-e inside the helm buffer opens results into a new buffer, allowing you to make changes

Hightlight the text you want to change in each result (is this already there)

Use SPC s e to use iedit to change the results as one change

C-c C-c to commit the changes.

There is also projectile-replace SPC p R

Can the commit bindings be changed to something more spacemacs like?

practicalli-johnny commented 4 years ago

https://practicalli.github.io/spacemacs/refactor/within-a-project.html

TODO: create a video of refactoring across a project