Skip to content

More pane size persistence - #183

Open
lookbusy1344 wants to merge 3 commits into
hewigovens:mainfrom
lookbusy1344:pane-size-persistence
Open

More pane size persistence#183
lookbusy1344 wants to merge 3 commits into
hewigovens:mainfrom
lookbusy1344:pane-size-persistence

Conversation

@lookbusy1344

@lookbusy1344 lookbusy1344 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

I noticed evolog pane width adjustments were not preserved. This branch persists evolog snapshot-list pane width, sharing width with the normal file list. The same width is also used for any third pane (eg files in a snapshot).

Keep the snapshot and filename pane widths in persisted app settings and stable view state so loading another evolution snapshot no longer restores split-view defaults. Add a deterministic XCUITest fixture and regression scene covering snapshot switches and app relaunches.
@hewigovens

Copy link
Copy Markdown
Owner

For 2 and 3, no need to persistent imho, they're good default values; can you reuse FileColumn width constant (rename to make it generic) and preference for Evolog too? no need to have another value.

@lookbusy1344

Copy link
Copy Markdown
Contributor Author

For 2 and 3, no need to persistent imho, they're good default values; can you reuse FileColumn width constant (rename to make it generic) and preference for Evolog too? no need to have another value.

No problem I’ll update this in the next couple of hours!

Instead of two persisted evolog widths, both the entry-list and
file-list dividers read and write the same PaneLayout.secondaryPaneWidth
preference the change-detail file column already uses, renamed from
fileColumn to reflect that. One shared value, one shared default;
no need for evolog-specific persistence.
The interdiff file list is a third pane in a snapshot/filenames/preview
split, not the two-pane layout secondaryPaneWidth is tuned for. It still
sizes from that shared preference by default, but no longer writes its
own drags back to it, so resizing it doesn't change the default the
file column and evolog entry list restore to.
@lookbusy1344
lookbusy1344 force-pushed the pane-size-persistence branch from 98dbdcd to a2915aa Compare August 31, 2026 08:34
@lookbusy1344

Copy link
Copy Markdown
Contributor Author

Ok so now we're sharing evolog width with the normal file list (renamed to secondaryPaneWidth to make it generic), and it's also shared with any third pane (like looking at files in a snapshot), but for the third pane any adjustment isn't written back to the default.

How's it look?

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