Skip to content

Always left-align status text in pretty tables - #48

Draft
JeffreyCA with Copilot wants to merge 1 commit into
jeffreyca/table-redesignsfrom
copilot/update-table-layout-enhancements
Draft

Always left-align status text in pretty tables#48
JeffreyCA with Copilot wants to merge 1 commit into
jeffreyca/table-redesignsfrom
copilot/update-table-layout-enhancements

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown

The pretty-table layout left-padded plain status values to align under the text of symbol-prefixed values (e.g. ⟳ Update available). This special-casing is removed; status text is now always left-aligned.

Changes

  • pkg/output/pretty_table_types.go — removed the AlignLeadingSymbol column option.
  • pkg/output/pretty_table_table.go — removed the per-column alignment pass.
  • pkg/output/pretty_table_layout.go — removed the alignLeadingSymbols/leadingSymbolWidth helpers and the now-unused unicode import.
  • cmd/extension.go, cmd/tool.go — dropped AlignLeadingSymbol: true from the STATUS columns.
  • pkg/output/pretty_table_responsive_test.go — removed the alignment-specific tests and option references.

Behavior

Before (plain values padded to align under symbol text):

STATUS
⟳ Update available
  Up to date
  Not installed

After (always left-aligned):

STATUS
⟳ Update available
Up to date
Not installed

Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
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.

2 participants