your-tools / ruplacer

Find and replace text in source files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

replace patterns within files of a particular type

Dowwie opened this issue · comments

I'd like to replace patterns within files of a particular type, such as "--type rust". This feature is demonstrated within ripgrep.

Seems like the feature is implemented in ignore, a crate we already depend on.

So should be easy to implement :)

@Dowwie PR is here :)

Please tell me if you need things like --type-add or --type-clear. They exist in rg, but I'm not sure we need them in ruplacer too.

@dmerejkowsky exciting! will let you know. thank you for implementing this!

when do you plan to release to crate?

As soon as #23 is accepted :)

0.3.0 is out. Enjoy :)

@dmerejkowsky works! :) this is a great enhancement. did you also modify highlighting?

If you're talking about #15 we may have a solution but it needs more work