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.pdfproject-parent_slug_01.txt20260227-asset-<uuid>
Compose is a Pro feature.
Two Authoring Modes
1. Visual Mode
Visual Mode is block-based:
- Add a Compose rule.
- Tap Add Block.
- Choose block type.
- Configure each block in its own edit sheet.
- Reorder blocks by drag handle.
- 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.
2. Text Mode
Text Mode is template syntax:
- Enable Text Mode.
- Type raw template expressions with
{...}blocks. - 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)
Block Type Reference
| Block | Purpose | Typical syntax/output |
|---|---|---|
| Text | Literal text | INV_, -, _v2 |
| Variable | File metadata variable with optional format/filters | {name}, {date_created:yyyy-MM-dd}, {name:format} |
| Sequence | Generated counter with cadence and grouping support | {sequence:1:1:3} or named sequence syntax |
| Current Date | Current time at rename execution | {date_now:yyyy-MM-dd_HH-mm-ss} |
| UUID | Random identifier | {uuid}, {uuid:16:no-hyphens} |
| Hash | File content hash | {hash}, {hash:sha256:16} |
| Parent Directory | Parent 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 formatyyyy-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}(defaultmd5, length8){hash:md5:12}{hash:sha256:16}
Parent block
{parent}(depth1){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:
arabicromanUpperromanLowerlettersUpperlettersLower
Canonical grouping_mode values:
noneresetByPropertyadvanceByGroupKey
Canonical grouping values:
noneparentFolderfileExtensiondateCreateddateModified
Canonical group_key_source values:
prefixSubstringregexpCapture
Accepted boolean style:
"true"/"false"(also1/0,yes/noare accepted)
Notes:
increment_everyapplies tononeandresetByPropertygrouping modes.- In
advanceByGroupKey, numbering follows first-seen extracted keys rather than count-based cadence. - Legacy templates that omit
grouping_modebut still setgroupingcontinue 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.avi01_episode01.srt02_episode02.avi02_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.mp401_movie_ep01_sub.srt02_movie_ep02_video.mp402_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
- Unmatched braces
- Example:
{nameorname} - Result: parse error
- Unknown block name
- Example:
{my_custom_block} - Result: parse error
- Invalid sequence or hash syntax
- Example:
{sequence:start}with non-numeric values - Example:
{hash:sha1:12}(unsupported algorithm)
- No dynamic blocks warning
- Text-only templates like
Archive_2026produce same output for all files.
- No unique block warning
- Template missing
name,sequence,uuid, andhashmay create collisions.
- Sequence settings do not combine as expected
increment_everyis for count-based cadence.advanceByGroupKeyuses extracted keys instead of count-based cadence.
- Extension surprises
- If include-extension is on, template must include extension text when needed.
Tips for Reliable Compose Templates
- Start in Visual Mode, then switch to Text Mode for fine edits.
- Include a uniqueness source (
{name}or sequence/uuid/hash). - Use
increment_everyfor fixed bundles andadvanceByGroupKeyfor extracted-name bundles. - Keep Include extension off unless you intentionally want full control.
- Validate with a small batch before renaming at scale.