nbir 1.1.0

Numeric Bulk Image Renamer (NBIR): rename image files to a sequential numbered scheme (e.g. base01.jpg, base02.png)
nbir-1.1.0 is not a library.

NBIR — Numeric Bulk Image Renamer

Rename image files in a directory to a sequential numbered scheme (e.g. base01.jpg, base02.png).

Installation

From crates.io:

cargo install nbir

From source:

git clone https://github.com/yourusername/simplebulkfilerenamer
cd simplebulkfilerenamer
cargo install --path .

Usage

Interactive mode (no arguments): Run nbir with no args. It will ask “Do you want to run it in the current directory? (y/n)” and, if yes, “Enter base name (e.g., spacewallpaper)”. Then it shows a preview and asks to proceed—like the original Python script.

CLI mode: Pass --base-name (and optionally -d, -y):

nbir [OPTIONS] [--base-name <NAME>]

Options

Short Long Default Description
-b --base-name Base name for renamed files. If omitted, runs interactively and prompts for it.
-d --directory . Directory containing images
-y --yes false Skip confirmation; rename immediately

Examples

Interactive (prompts for directory and base name):

nbir

Preview renames in the current directory (will ask for confirmation):

nbir -b vacation

Rename immediately without prompting:

nbir -b vacation -y

Target a specific folder:

nbir -b thumbs -d ~/Pictures/screenshots

Supported formats

.jpg, .jpeg, .png, .gif, .webp, .bmp, .tiff, .tif (case-insensitive)