feat(format): add case pipe for VALUE/NAME#1103
Conversation
Adds "case:<style>" pipe option for {{VALUE}}/{{NAME}}/{{VALUE:<var>}} to transform resolved values (kebab/snake/camel/pascal/title/lower/upper) at render time without mutating stored variables.
Refs #90
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughAdds per-token case transformation support for VALUE and NAME tokens via a new Changes
Sequence DiagramsequenceDiagram
participant User
participant Formatter
participant Parser as ValueSyntaxParser
participant Transformer as transformCase
participant Output
User->>Formatter: Provide template with {{VALUE:...|case:kebab}}
Formatter->>Parser: parseValueToken(token)
Parser-->>Formatter: ParsedValueToken { valueName?, options..., caseStyle: "kebab" }
Formatter->>Formatter: Resolve raw value (prompt/vars/default)
Formatter->>Transformer: transformCase(rawValue, "kebab")
Transformer-->>Formatter: transformedValue
Formatter->>Output: Inject transformedValue into generated output
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying quickadd with
|
| Latest commit: |
1bdb748
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cb4522a0.quickadd.pages.dev |
| Branch Preview URL: | https://codex-case-transform.quickadd.pages.dev |
Adds pipeSyntax helpers and reuses them in VALUE option parsing and FIELD filter parsing.
# [2.11.0](2.10.0...2.11.0) (2026-02-08) ### Bug Fixes * add newline when appending tasks ([#1102](#1102)) ([a4b4e4a](a4b4e4a)) * clarify split direction labels to match actual behavior ([#1089](#1089)) ([ea97045](ea97045)), closes [#1081](#1081) * correct end-of-section line detection ([#1096](#1096)) ([0eeedb3](0eeedb3)), closes [#593](#593) * **docs:** explain how to add user scripts to macros ([c6e2448](c6e2448)) * encode spaces in advanced uri docs ([0c24cd0](0c24cd0)) * handle alias frontmatter case and commas ([cc6aec6](cc6aec6)) * improve capture target resolution ([1bd7520](1bd7520)) * improve choice rename UX ([bccc331](bccc331)), closes [#683](#683) * **settings:** hide .md extension in settings suggesters ([#1104](#1104)) ([2e6056e](2e6056e)), closes [#102](#102) ### Features * **format:** add case transforms for VALUE/NAME ([#1103](#1103)) ([1a962c2](1a962c2)), closes [#90](#90)
|
🎉 This PR is included in version 2.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🚀 Release has been published: v2.11.0 |
Adds a new
case:<style>pipe option to QuickAdd format syntax variables so values can be transformed inline (e.g.{{VALUE:title|case:kebab}}->my-new-blog).Supported styles: kebab, snake, camel, pascal, title, lower, upper, slug.
Behavior:
My API Key->myAPIKey,iOS App->iOSApp)UI:
|case:styles in the format syntax suggester.Docs + tests included.
Closes #90
Summary by CodeRabbit
New Features
Documentation
Tests