Skip to content

Wrap interactive help output to terminal width - #2651

Merged
Widthdom merged 5 commits into
mainfrom
fix-issue1672
May 24, 2026
Merged

Wrap interactive help output to terminal width#2651
Widthdom merged 5 commits into
mainfrom
fix-issue1672

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Wrap long cdidx --help usage and option lines for interactive terminals using the detected terminal width, capped at 120 columns.
  • Preserve fixed output for redirected and non-interactive help output.
  • Add console UI coverage for option-column wrapping, usage wrapping, and very narrow widths.

Validation

  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~ConsoleUiTests"
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • Codex adversarial review: No blocking/actionable issues found.

Documentation and changelog

  • Added changelog.d/unreleased/1672.fixed.md.

Follow-up candidates

  • None.

Fixes #1672

@Widthdom
Widthdom merged commit 7626f4d into main May 24, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue1672 branch May 24, 2026 19:04
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.

PrintUsage emits fixed-width help text; ignores detected GetWindowWidth

1 participant