Renaming to Renamify
The original name for this took was “Refaktor”. I decided that “Renamify” would be a better name, because it’s more about renaming thing and less about refactoring.
We used a .rfignore
file to exclude certain files from our end-to-end tests, so I needed to delete that first.
Next, I ran this command:
./target/release/refaktor rename refaktor renamify
This renamed almost everything in one shot:
# ...
@@ line 150 @@-"$REL_REFAKTOR" --version+"$REL_RENAMIFY" --version
--- /Users/ndbroadbent/code/refaktor/typos.toml+++ /Users/ndbroadbent/code/refaktor/typos.toml@@ line 3 @@-extend-identifiers = { refaktor = "refaktor" }+extend-identifiers = { renamify = "renamify" }
=== RENAMES ===dir /Users/ndbroadbent/code/refaktor/refaktor-mcp → /Users/ndbroadbent/code/renamify/renamify-mcpdir /Users/ndbroadbent/code/refaktor/refaktor-cli → /Users/ndbroadbent/code/renamify/renamify-clidir /Users/ndbroadbent/code/refaktor/refaktor-core → /Users/ndbroadbent/code/renamify/renamify-corefile /Users/ndbroadbent/code/refaktor/refaktor-mcp/src/refaktor-service.test.ts → /Users/ndbroadbent/code/renamify/renamify-mcp/src/renamify-service.test.tsfile /Users/ndbroadbent/code/refaktor/refaktor-mcp/src/refaktor-service.ts → /Users/ndbroadbent/code/renamify/renamify-mcp/src/renamify-service.ts
Refaktor plan: refaktor -> renamifyEdits: 117 files, 1922 replacementsRenames: 5 itemsApply? [y/N]: yApplying changes...✓ Applied 1922 replacements across 117 files✓ Renamed 5 itemsUndo with: refaktor undo 86f7b48dbb2156c3
Renamify excludes dotfiles by default, so I also had to run it on some specific dotfiles and directories:
./target/release/refaktor rename refaktor renamify \ .github/ .taskmaster/ .gitignore
Refaktor plan: refaktor -> renamifyEdits: 6 files, 153 replacementsApply? [y/N]: yApplying changes...✓ Applied 153 replacements across 6 filesUndo with: refaktor undo fdc8f0abb4780d92
Finally, I needed to rename the .rfignore
(For refactor) file to .rnignore
(for renamify):
./target/release/refaktor rename rfignore rnignore
# ...
@@ line 184 @@- // So both .gitignore and .rfignore should be respected+ // So both .gitignore and .rnignore should be respected
=== RENAMES ===file /Users/ndbroadbent/code/refaktor/renamify-core/tests/rfignore_test.rs → /Users/ndbroadbent/code/refaktor/renamify-core/tests/rnignore_test.rs
Refaktor plan: rfignore -> rnignoreEdits: 7 files, 38 replacementsRenames: 1 itemsApply? [y/N]: yApplying changes...✓ Applied 38 replacements across 7 files✓ Renamed 1 itemsUndo with: refaktor undo 4900704a6a95999e
All that was left to do was rename the GitHub repository and the project directory. Then I committed and pushed to the new repo.