mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
#4466 landed `{name}` / `{serial}` / `{date}` file naming templates and `startingSerial` on main while this branch was open. The merge keeps that contract on top of the branch's `batch::Naming`: `{serial}` pads to three digits (`{serial:1..4}` explicit), `{date}` is the UTC `YYYY-MM-DD`, a template without `{ext}` gets the output extension appended, `naming` must be a string of at most 255 bytes, `startingSerial` is 1..4294967295 and the serials of a run must stay within that, and the whole plan is checked before anything is written (`plan_outputs`): no output may replace another input before it is read. `file_cmds/batch_naming.rs` and `process_outputs` are superseded; #4466's tests stay and pass. The Batch dialog starts with a blank template (hint `{name}.{ext}`), `startingSerial` replaces `startSerial` everywhere (engine, lens batch, CLI validation), docs/batch-naming.md describes the merged tokens.