Skip to content

Modify the display in multi-line#350

Closed
godlockin wants to merge 4 commits into
sirmalloc:mainfrom
godlockin:main
Closed

Modify the display in multi-line#350
godlockin wants to merge 4 commits into
sirmalloc:mainfrom
godlockin:main

Conversation

@godlockin
Copy link
Copy Markdown

Reported behavior: on multi-line status bars, a widget with long content (e.g. a long git branch name) would push adjacent columns wider on other lines. Also, out-of-the-box configurations were truncating content on wider terminals due to an overly conservative default.

godlockin and others added 4 commits May 1, 2026 20:19
…ent per line

- Change default flexMode from 'full-minus-40' to 'full' so status line
  content is not unnecessarily truncated for new/default configurations
- Refactor calculateMaxWidthsFromPreRendered to return number[][] instead
  of number[], giving each line its own independent column widths so that
  a wide widget on one line no longer forces the same column wider on
  other lines when autoAlign is enabled

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
…default-flex-mode

Fix/independent line widths and default flex mode
@sirmalloc sirmalloc force-pushed the main branch 3 times, most recently from 4f7a07b to ec28376 Compare May 12, 2026 04:01
@sirmalloc
Copy link
Copy Markdown
Owner

@godlockin Can you explain the intent of this PR a little more clearly? The whole purpose of auto-alignment in powerline mode is to ensure every widget is vertically aligned with the widget above and/or below it. By calculating max width's on a per-line basis, this effectively prevents that functionality from working as intended.

A better fix to exclude wide widgets from affecting everything else would be to allow a single widget to be manually flagged as excluded from the auto-align calculation, which would basically cause that widget and everything after it on the same line to be exempt from any changes to their default widths.

@sirmalloc
Copy link
Copy Markdown
Owner

Closing this as a dupe of #349, I'll copy my previous question there.

@sirmalloc sirmalloc closed this May 13, 2026
Repository owner locked as resolved and limited conversation to collaborators May 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants