Skip to Content
User GuideCompose Rule (Visual Block Editor)

Compose Rule (Visual Block Editor)

Compose is a full-template rule: instead of applying many rules in sequence, you define the entire output name with blocks.

When to Use Compose

Use Compose when you need predictable, repeatable naming patterns such as:

  • INV_2026-02-27_0001.pdf
  • project-parent_slug_01.txt
  • 20260227-asset-<uuid>

Compose is a Pro feature.

Two Authoring Modes

1. Visual Mode

Visual Mode is block-based:

  1. Add a Compose rule.
  2. Tap Add Block.
  3. Choose block type.
  4. Configure each block in its own edit sheet.
  5. Reorder blocks by drag handle.
  6. Use swipe-to-delete to remove blocks.

Block types available:

  • Text
  • Variable
  • Sequence
  • Current Date (date_now)
  • UUID
  • Hash
  • Parent Directory

The Sequence block uses the same advanced sequence configuration as the standalone Sequence Numbering rule, including Every N files, Grouping Mode, extracted-key grouping, and Suggest from names.

Compose visual editor with blocks

2. Text Mode

Text Mode is template syntax:

  1. Enable Text Mode.
  2. Type raw template expressions with {...} blocks.
  3. Use {x} to insert variables and # to insert sequence syntax quickly.

Mode switching behavior:

  • Visual -> Text: always allowed (template is serialized from blocks).
  • Text -> Visual: allowed only when template parses without errors.
  • If parse errors exist, switch is blocked until fixed.

Template validation shows:

  • Errors (for example unmatched braces, unknown block, invalid sequence/hash syntax)
  • Warnings (for example no dynamic blocks, or no unique block)

Include Extension Toggle

Include extension in compose output controls whether Compose writes full filename or name-only output.

  • Off (default): Compose output replaces only name body; original extension is preserved.
  • On: Compose output controls full filename including extension.

Example with template {name}_final on report.pdf:

  • Include extension Off -> report_final.pdf
  • Include extension On -> report_final (no extension unless template adds one)
Compose block edit sheet

Block Type Reference

BlockPurposeTypical syntax/output
TextLiteral textINV_, -, _v2
VariableFile metadata variable with optional format/filters{name}, {date_created:yyyy-MM-dd}, {name:format}
SequenceGenerated counter with cadence and grouping support{sequence:1:1:3} or named sequence syntax
Current DateCurrent time at rename execution{date_now:yyyy-MM-dd_HH-mm-ss}
UUIDRandom identifier{uuid}, {uuid:16:no-hyphens}
HashFile content hash{hash}, {hash:sha256:16}
Parent DirectoryParent folder at configurable depth{parent}, {parent:3}

Compose Syntax Reference

Compose supports short and named syntax.

Short Syntax

Variable blocks

  • {name}
  • {date_created:yyyy-MM-dd}
  • {name | upper | truncate: 10}
  • {photo_date:yyyy-MM-dd}_{camera_model}

The variable list includes the photo, camera, exposure, location, media and document variables (see Variables and Filters). The date format applies to {photo_date} and {media_date} as well.

Sequence block

{sequence:start:increment:width:format}

Examples:

  • {sequence:1:1:3} -> 001, 002, 003...
  • {sequence:10:5:2} -> 10, 15, 20...
  • {sequence:1:1:0:romanUpper} -> I, II, III...

Short syntax covers the common start, increment, width, and format fields. For increment_every, grouping_mode, group-key extraction, or skip_single_item_groups, use named syntax or the visual editor.

Current date block

  • {date_now} (default format yyyy-MM-dd)
  • {date_now:yyyyMMdd}
  • {date_now:yyyy-MM-dd_HH-mm-ss}

UUID block

  • {uuid} (default compose UUID: 36 chars with hyphens)
  • {uuid:16}
  • {uuid:no-hyphens}
  • {uuid:16:no-hyphens}

Hash block

  • {hash} (default md5, length 8)
  • {hash:md5:12}
  • {hash:sha256:16}

Parent block

  • {parent} (depth 1)
  • {parent:2} (grandparent)
  • {parent:3}

Named Attribute Syntax

Named form is recommended for advanced sequence behavior and for long templates that need to stay readable.

Sequence (advanced)

Property-reset example:

{sequence start="1" increment="1" increment_every="2" width="3" format="arabic" grouping_mode="resetByProperty" grouping="fileExtension" skip_single_item_groups="true"}

Advance-by-key example:

{sequence start="1" increment="1" width="2" format="arabic" grouping_mode="advanceByGroupKey" group_key_source="regexpCapture" regexp_pattern="^movie_(ep\d+)_" regexp_capture_group="1"}

Canonical format values:

  • arabic
  • romanUpper
  • romanLower
  • lettersUpper
  • lettersLower

Canonical grouping_mode values:

  • none
  • resetByProperty
  • advanceByGroupKey

Canonical grouping values:

  • none
  • parentFolder
  • fileExtension
  • dateCreated
  • dateModified

Canonical group_key_source values:

  • prefixSubstring
  • regexpCapture

Accepted boolean style:

  • "true" / "false" (also 1/0, yes/no are accepted)

Notes:

  • increment_every applies to none and resetByProperty grouping modes.
  • In advanceByGroupKey, numbering follows first-seen extracted keys rather than count-based cadence.
  • Legacy templates that omit grouping_mode but still set grouping continue to work and are interpreted as property-reset grouping.

date_now

{date_now format="yyyy-MM-dd_HH-mm-ss"}

uuid

{uuid length="16" hyphens="false"}

hash

{hash algorithm="sha256" length="16"}

parent

{parent depth="3"}

named variable attributes

For standard variables (name, ext, parent, date_created, etc.), named attributes are also supported:

{name format="yyyy-MM-dd" filter="upper|truncate: 8"} {name truncate="8" default="untitled"}

Real-World Compose Templates

Invoice archive

Template:

INV_{date_now:yyyyMMdd}_{sequence:1:1:4}_{name | lower | replace: ,_}

Possible output:

  • INV_20260227_0001_client-contract.pdf

Media export every 2 files

Template:

{sequence start="1" increment="1" increment_every="2" width="2"}_{name}

Possible output:

  • 01_episode01.avi
  • 01_episode01.srt
  • 02_episode02.avi
  • 02_episode02.srt

Group by extracted episode key

Template:

{sequence start="1" increment="1" width="2" grouping_mode="advanceByGroupKey" group_key_source="regexpCapture" regexp_pattern="^movie_(ep\d+)_" regexp_capture_group="1"}_{name}

Possible output:

  • 01_movie_ep01_video.mp4
  • 01_movie_ep01_sub.srt
  • 02_movie_ep02_video.mp4
  • 02_movie_ep02_sub.srt

Stable ID with date and hash

Template:

{date_now:yyyyMMdd}_{hash:sha256:12}_{name | truncate: 20}

Possible output:

  • 20260227_a3f1c778d0ef_quarterly_report.pdf

Escaping in Compose Templates

Use backslash escaping when you need literal syntax characters.

  • \{ -> literal {
  • \} -> literal }
  • \\ -> literal \
  • \| -> literal pipe inside expressions

Example:

\{literal\}_{name}

Output:

  • {literal}_report

Validation and Common Pitfalls

  1. Unmatched braces
  • Example: {name or name}
  • Result: parse error
  1. Unknown block name
  • Example: {my_custom_block}
  • Result: parse error
  1. Invalid sequence or hash syntax
  • Example: {sequence:start} with non-numeric values
  • Example: {hash:sha1:12} (unsupported algorithm)
  1. No dynamic blocks warning
  • Text-only templates like Archive_2026 produce same output for all files.
  1. No unique block warning
  • Template missing name, sequence, uuid, and hash may create collisions.
  1. Sequence settings do not combine as expected
  • increment_every is for count-based cadence.
  • advanceByGroupKey uses extracted keys instead of count-based cadence.
  1. Extension surprises
  • If include-extension is on, template must include extension text when needed.

Tips for Reliable Compose Templates

  1. Start in Visual Mode, then switch to Text Mode for fine edits.
  2. Include a uniqueness source ({name} or sequence/uuid/hash).
  3. Use increment_every for fixed bundles and advanceByGroupKey for extracted-name bundles.
  4. Keep Include extension off unless you intentionally want full control.
  5. Validate with a small batch before renaming at scale.
Last updated on