Skip to content

Naming patterns ​

The --name pattern (or config name) controls output file names.

Tokens ​

TokenExampleDescription
{index}11-based row number
{index:N}001Zero-padded to N digits
{first}BudiFirst column value (sanitized)
{Column}BudiAny column value (sanitized)
{slug:Column}budi-santosoLowercase, accents removed, spaces → -

Examples ​

PatternRow 1 (Source Text: "Budi Santoso")Row 2 (Source Text: "Sari Dewi")
{index}-{first}1-Budi2-Sari
{index:3}-{first}001-Budi002-Sari
{index}-{Source Text}1-Budi Santoso2-Sari Dewi
{index:3}-{slug:Source Text}001-budi-santoso002-sari-dewi
ep{index:3}-{slug:Episode}ep001-pilot-episodeep002-season-premiere

Sanitization rules ​

All token values (except {index}) are sanitized:

  1. Windows reserved names → prefixed with _: CON → _CON, COM1 → _COM1
  2. Invalid chars < > : " / \ | ? * and control chars → _
  3. Trailing dots/spaces → removed
  4. Max length → 60 chars

Collision handling ​

Duplicate names after sanitization get -2, -3, … appended:

1-Budi.mp4
2-Budi.mp4
3-Budi-2.mp4
4-Budi-3.mp4

Default pattern ​

{index}-{first}

Config file ​

json
{
  "name": "{index:3}-{slug:Source Text}"
}

CLI flag overrides: --name "{index:3}-{slug:Source Text}"

Next steps ​

Independent project. Not affiliated with the ArtCraft team or the EffectCraft project.