Coder Social home page Coder Social logo

thealgorythm / frs Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 453 KB

Rename files with RegEx patterns.

Home Page: https://zschoen.dev/projects/frs

License: GNU General Public License v3.0

Rust 100.00%
regex rename rename-files rename-directories find cli developer-tools rust rust-lang

frs's People

Contributors

dependabot[bot] avatar thealgorythm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

frs's Issues

Format Metadata

The metadata can be accessed with this function. The primary goal is to use things like the creation time. It should support several format options.
The Ramhorns template engine should be optionally applied before the RegEx replace by using a new --metadata flag.
An alternative could be to inject the metadata into the RegEx replacer.

Traverse Directory Tree

This feature has to be implemented!

There is a potential issue in renaming directories and files in them. Therefore directories should be disabled by default to prevent this kind of race condition (there is no undefined behaviour, it will error out) until an efficient method to work with this is found.

Stats on more verbose Output

On -vv it should give stats about the total renamed things and folders, files, symlinks and errors but only if greater 0.

add naming conventions

There should be other modes which don't use regex rules, but predefined naming conventions like camelCase, snake_case, kebab-case. there are crates heck and Inflector which can do the heavy lifting.
Therefore a trait Replace should be created to handle the different Replacement-Engines.
#7 would work great with this idea.
Maybe it would even be possible to concatenate different replacers to a pipe.

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.