Giter VIP home page Giter VIP logo

replace's Introduction

replace's People

Contributors

theiskaa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cwc-lib

replace's Issues

include lsp option for replacing

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:

  • phrase replace (default)
  • lsp replace (optional)

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"

include only words `-w`

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.