Skip to content

feat: persist window width across hide/restore#315

Merged
sudo-tee merged 1 commit intosudo-tee:mainfrom
jensenojs:persist-window-width
Mar 12, 2026
Merged

feat: persist window width across hide/restore#315
sudo-tee merged 1 commit intosudo-tee:mainfrom
jensenojs:persist-window-width

Conversation

@jensenojs
Copy link
Contributor

@jensenojs jensenojs commented Mar 10, 2026

Save user-adjusted window width ratio when hiding and restore it when restoring hidden windows.

Let situational width adjustments (wide tables, etc.) persist through toggle cycles while keeping config defaults for fresh sessions.

@jensenojs
Copy link
Contributor Author

jensenojs commented Mar 10, 2026

Sometimes the default width display may not be wide enough (for example, we find that opencode has just output a relatively wide table). In such cases, my instinctive action is to make temporary fine adjustments using a touchpad or similar device. During this temporary adjustment, I do not want the default settings to override it.

My local testing behavior is acceptable so far, but I've only conducted one round of vibe review, and I need to take a closer look myself.

But I have to go to sleep now. If you have time and no issues (or if you have any issues), feel free to make changes directly

@jensenojs jensenojs force-pushed the persist-window-width branch 2 times, most recently from fffd542 to 23e296a Compare March 11, 2026 02:56
@jensenojs
Copy link
Contributor Author

before :

before.mp4

after :

after.mp4

@jensenojs
Copy link
Contributor Author

Do I need to add test cases? @sudo-tee

@sudo-tee
Copy link
Owner

@jensenojs I would indeed like it if you have time to add tests for this :)

Save user-adjusted window width ratio when hiding and restore it
when restoring hidden windows.
@jensenojs jensenojs force-pushed the persist-window-width branch from 23e296a to 063ce4f Compare March 12, 2026 03:35
@sudo-tee
Copy link
Owner

Thanks for the fix
Works great :)

@sudo-tee sudo-tee merged commit c265665 into sudo-tee:main Mar 12, 2026
9 of 10 checks passed
@jensenojs jensenojs deleted the persist-window-width branch March 12, 2026 12:47
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