I decided to play around with Rust lang and worked on this. This allows you to replace any occurrence of a text in a file or directory.
- Rust programming language. Install here
- MacOS.
- To get started, run
git clone https://github.com/praiseisaac/replace-in.git
. - Run
cd replace-in && ./setup
from the directory. - If you get a
permission denied error
, runchmod 755 ./start
to give the file execute permission. You can read the file to verify its contents. Next, run./setup
.
- To run the application, right click on a file or directory you want to replace a text in, navigate to
Quick actions
, then click on theReplace in
action. - If you don't see the
Replace in
option in theQuick action
menu, clickCustomize
, then check theReplace in
checkbox. - Repeat step 1.