Skip to content

✨ feat(mq-formatter): add --max-width for automatic pipeline wrapping#2027

Merged
harehare merged 1 commit into
mainfrom
feat/formatter-max-width
Jul 16, 2026
Merged

✨ feat(mq-formatter): add --max-width for automatic pipeline wrapping#2027
harehare merged 1 commit into
mainfrom
feat/formatter-max-width

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

FormatterConfig gains an optional max_width. When set, |-chained pipelines that grow past the limit are wrapped onto multiple lines using the same style as manually written multi-line pipelines, instead of collapsing onto a single ever-growing line.

Exposed as mq-fmt --max-width/-w and via mq-web-api's format endpoint.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

FormatterConfig gains an optional max_width. When set, `|`-chained
pipelines that grow past the limit are wrapped onto multiple lines
using the same style as manually written multi-line pipelines,
instead of collapsing onto a single ever-growing line.

Exposed as `mq-fmt --max-width`/`-w` and via mq-web-api's format
endpoint.
@harehare
harehare merged commit 0f909ac into main Jul 16, 2026
9 checks passed
@harehare
harehare deleted the feat/formatter-max-width branch July 16, 2026 13:22
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