https://github.com/jamjamjon/renify
A simple cli tool for batch renaming files and folders, written in Rust.
https://github.com/jamjamjon/renify
rename rename-files renamer
Last synced: 5 months ago
JSON representation
A simple cli tool for batch renaming files and folders, written in Rust.
- Host: GitHub
- URL: https://github.com/jamjamjon/renify
- Owner: jamjamjon
- License: mit
- Created: 2024-02-02T14:27:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T06:53:10.000Z (over 1 year ago)
- Last Synced: 2025-04-29T06:24:16.842Z (5 months ago)
- Topics: rename, rename-files, renamer
- Language: Rust
- Homepage:
- Size: 3.27 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Renify
A simple cli tool for batch renaming files and folders, written in Rust.- π written in Rust, fast.
- π Available on PyPi, install via `pip`.
- π§© `Windows` `Linux` `MacOS` support.
- π `files` and `folders` support.
- π **7** renaming methods provided.
- β οΈ `symlinks` are `unsupported` for now!
# Installation
```
pip install renify
# or
cargo install renify
```# Usage
### Renaming - ιε½ε
For those new to Renify, consider using the following code for **interactive mode**:
```bash
renify -i
```Or you can use:
```bash
renify -i --target file --method znum --nbits 5 --recursive false --start 1 -y
```### Rolling back - ιεδΈδΈζ¬‘ζδ½
You can revert to the previous state of the modifications by using:
```bash
renify -i . --roll
```### Help & options
You can get help from:
```bash
renify --help
```# Methods provided
- [x] **random:** Sample a u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. `9AFoh, wGRLC, knj9y, ...`
- [x] **uuid:** Uuid4. `de2662a9-fb02-4686-b556-0aca36c0e087`
- [x] **time:** Local time now. `2023-03-04-22-26-42-222655555`
- [x] **num:** Numbers start from `--start` (1 by default). `1, 2, 3, ...`
- [x] **znum:** Numbers with left zero padding start from `--start` (1 by default). `001, 002, 003, ...`
- [x] **prefix:** Add a prefix string to the file stem, along with a delimiter. `X.jpg => [--with][--delimiter]X.jpg`
- [x] **append:** Append a delimiter and a string after the file stem. `X.jpg => X[--delimiter][--with].jpg`# Note that
Renify will set `--indiscriminate false` to make sure that the file stems stay consistent. This means that if you have files with the same stems in the same folder, they'll still look the same even after you rename them. Certainly, you can use `--indiscriminate` to treat each file as an independent entity without considering its relationship with other files.