docs.rs failed to build nomino-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
nomino-1.6.4
nomino
Batch rename utility for developers

How to install
Pre-Compiled
you can download a pre-compiled executable for Linux, then you should copy that executable to /usr/bin or add it to your $PATH env. Do not forget to chmod +x nomino.
Build Manually
- Install rust:
curl -sSf https://sh.rustup.rs | sh - Run
cargo install nomino
Usage
)
)
<OUTPUT> Output
It might work on Windows, MacOS and other operating systems, however, the pre-compiled executable is only tested and generated for Linux.
Map file format
Output
The output is necessary when using --sort or --regex options.
Regex
The accepted syntax of regex pattern is RE2.
Placeholders
- Placeholders have the format of
{I:P}whereIis the index of captured group andPis the padding of digits with0. For example,{2:3}means the third captured group with a padding of 3, i.e.1is formatted as001. - Indices start from
0, and{0}means the filename. - The index
Icould be dropped, i.e.{}or{:3}. In this case an auto incremental index is used which starts from1. For example,{} {}equals{1} {2}. {and}characters could be escaped using\character, i.e.\\{and\\}in cli.- Padding is only used for positive numbers, e.g. the formatted result of
{:3}for1is001, for-1is-1and foraisa. - If
--sortoption is used, the first index{0}is the filename and the second index{1}or first occurrence of{}is the enumerator index.
Example
Consider the following directory:
)
)
)
)
)
Note that -p flag is used to print the table and -e flag is used to preserve the extension of input.
- Rename files using
regexoption:
| | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
- Rename files using
sortoption:
| | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
| | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
- Rename files using the following
map.jsonfile:
| | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
- Undo renaming files: rename files by creating a map file using
-goption, then use that map file to undo renaming:
| | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
| | |
| | ) |
| | ) |
| | ) |
| | ) |
| | ) |
Benchmark
Please refer to wiki for benchmark results of similar tools.