Skip to content

feat: add line-length based pretty printing#67

Open
bbqsrc wants to merge 1 commit into
bearcove:mainfrom
necessary-nu:main
Open

feat: add line-length based pretty printing#67
bbqsrc wants to merge 1 commit into
bearcove:mainfrom
necessary-nu:main

Conversation

@bbqsrc
Copy link
Copy Markdown

@bbqsrc bbqsrc commented Apr 22, 2026

Implements --pretty and --line-length flags for smart pretty printing that automatically expands structures exceeding line length limits.

  • CLI: --pretty flag enables line-length based formatting
  • CLI: --line-length allows customizing the line limit (default: 80)
  • facet-styx: Added to_string_pretty() and peek_to_string_pretty()
  • Core: Line-length estimation and automatic expansion logic
  • Spec: Added formatting requirements to parser specification
  • Tracey: Added proper requirement annotations

Implements --pretty and --line-length flags for smart pretty printing
that automatically expands structures exceeding line length limits.

- CLI: --pretty flag enables line-length based formatting
- CLI: --line-length allows customizing the line limit (default: 80)
- facet-styx: Added to_string_pretty() and peek_to_string_pretty()
- Core: Line-length estimation and automatic expansion logic
- Spec: Added formatting requirements to parser specification
- Tracey: Added proper requirement annotations
@bbqsrc
Copy link
Copy Markdown
Author

bbqsrc commented Apr 22, 2026

I really have no idea what we'd want this to say in the spec, if anything, but a proposal is there.

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