theiskaa / replace Goto Github PK
View Code? Open in Web Editor NEWReplace X with Y in Z files
License: Apache License 2.0
Replace X with Y in Z files
License: Apache License 2.0
Currently, we replace all the matchers of X in Z. Without any logic, or language server protocol analysis.
It would be great to have both options:
I guess the command will shape this way: (with short option -l
)
rp -l "HidableController" "HController" "lib/*.dart"
or with full option --lsp
:
rp --lsp "HidableController" "HController" "lib/*.dart"
A new parameter that will decide how the replace algorithm works.
Currently the replace algorithm replaces all the matches of X if even the continues is different word.
For example I have a HidableController
and Hidable
, I replaced that Hidable keyword with Hide
, then HidableController
also will be affected and it will be HideController
.
To avoid this optionally, we can add a new parameter to the app, that decides whether it should only include words or the full matches.
rp -w "Hidable" "Hide" "lib/*.dart"
*.prefix also should dive into sub directories of provided up x.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.