Skip to content

Dev#44

Merged
jrodal98 merged 3 commits into
masterfrom
dev
Feb 10, 2026
Merged

Dev#44
jrodal98 merged 3 commits into
masterfrom
dev

Conversation

@jrodal98
Copy link
Copy Markdown
Owner

No description provided.

- Added map pipeline documentation showing syntax: {var|map[key:val,...]}
- Emphasized that unmapped values pass through unchanged
- Added critical warning about pipeline order
- Clarified that map should come BEFORE options[strict] for validation
- Added concrete example showing correct usage

This addresses the missing UI documentation that caused user confusion
about how to properly chain map with strict validation.
Adds a comprehensive real-world example demonstrating the power of the
templating system by combining map and strict options pipelines.

Example bookmark:
- pr dr p -> https://drive.proton.me/photos
- pr mail -> https://mail.proton.me
- pr vpn -> https://vpn.proton.me

Features demonstrated:
- Map shortcuts to full names: m->mail, cal->calendar, dr->drive
- Strict validation ensuring only valid products are allowed
- Optional subproducts with their own map+strict pipeline
- Correct pipeline order: map BEFORE options[strict] for validation

Added comprehensive tests:
- Product shortcuts (dr, m, cal)
- Full product names (vpn, mail, calendar)
- Subproduct shortcuts (p, d, s)
- Optional subproduct omission
- Invalid product/subproduct rejection
- Pipeline order correctness vs incorrectness

YAML fix:
- Quoted description field to avoid parsing colons as YAML mappings
Expands the Template Syntax section with:
- Complete list of all pipeline operations
- Clear distinction between basic variables and pipelines
- Comprehensive Proton bookmark example demonstrating real-world power
- Concrete usage examples showing shortcuts in action
- Critical warning about pipeline order (map before options[strict])

The example showcases how combining map and strict options creates
a powerful, user-friendly interface with shortcuts like 'dr' → 'drive'
while maintaining strict validation.
@jrodal98 jrodal98 merged commit dba15c5 into master Feb 10, 2026
2 checks passed
@jrodal98 jrodal98 deleted the dev branch February 10, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant