Skip to content

feat(ui): accept a percentage for ui.max-width - #157

Merged
versenilvis merged 1 commit into
mainfrom
feat/max-width-percent
Aug 30, 2026
Merged

feat(ui): accept a percentage for ui.max-width#157
versenilvis merged 1 commit into
mainfrom
feat/max-width-percent

Conversation

@versenilvis

@versenilvis versenilvis commented Aug 30, 2026

Copy link
Copy Markdown
Owner

closes #152

ui.max-width took only a column count, so on a 200 column terminal the menu stayed at 76

[ui]
max-width = 80       # columns
OR
max-width = "80%"    # share of the terminal

Only accept integer and percentage, percentage has to be in the quote mark " "

Bad values are rejected with the accepted forms named: "150%" fails validation, "wide" fails parsing

Clarify that "0" means default width

image image

@versenilvis
versenilvis merged commit 53b287e into main Aug 30, 2026
3 checks passed
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.

feat(ui): support percentage values for ui.max-width

1 participant