repad
Pad every initiative number in a collection to one width (01-, 001-) — the given width, or the width most of its files use — renaming the files and their asset folders and rewriting every link to them across the repo.
Instructions
Pad every initiative number in a collection to one width (01-, 001-) — the given width, or the width most of its files use — renaming the files and their asset folders and rewriting every link to them across the repo. Dry run by default: returns each rename and link rewrite; pass dry_run: false to apply. Refuses a width too small for the highest number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Digits to pad to; default: the width most of the collection's files use. | |
| dry_run | No | Default true: plan only. | |
| collection | Yes |