ruplacer
ruplacer copied to clipboard
Find and replace text in source files
Proposed tag: question. I want to make all `class {Name}Test` to be `internal class {Name}Test`, so I try to run: ~~~shell ruplacer 'class (\w+)Test' 'internal class $1Test' ~~~ But it...
It would be great to have support for shell completion for bash, zsh, etc.
Intended to resolve #51, pending discussion (there's some trade-offs!). See individual commits for more details on changes. Open questions: - [ ] What new tests should be added? Cases that...
Currently ruplacer only accepts one path, unlike grep, sed, etc. I'd like to use it like ``` ruplacer foo bar folder1 folder2 ruplacer spam baz myproject/spam_* ```
I have the following in a lot of files: ``` Log.send( new LogData( this.baseData, `${this.tryGetPingMatterLinkedToUser.name}.ts`, userId, Level.Warn, `Dms client matter code: ${filedDocument.DmsClientMatterCode()} does not exist in Ping` ) ); ```...
This (currently WIP) PR proposes switching to `ignore`'s parallel walker API. It's not complete yet (`threads` are still only set to 1), but I figured that I should start discussion...
## Problem I want to patch code of ignored files (dependencies of my python project). But there is no difference with or without `--ignored` - `Error: nothing found to replace`....
Create a file with replacement operations, regex or direct replacements, new line separated. Read this in as a batch operation.
Windows 7 x64, ruplacer 0.8.2. The app behaves too self-willed, recursively diving into subfolders. How do I limit this behavior? For example, ripgrep implemented the flag `--max-depth=N`. It may be...
In some cases, if no match is found, it's not a mistake. For example: Read a folder with several files in it, then execute the `ruplacer` command for each file...