Skip to content

Switching between Size and Files keeps you in the same folder - #34

Merged
tobi merged 1 commit into
tobi:mainfrom
btsouth:metric-keeps-place
Sep 27, 2026
Merged

tobi merged 1 commit into
tobi:mainfrom
btsouth:metric-keeps-place

Conversation

@btsouth

@btsouth btsouth commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Children are sorted by the metric, but switching between Size and Files kept the old crumbs. So if you're inside a folder that is first by size but not by file count, pressing t (or clicking Files) drops you into whichever sibling now sits at that index, with a different tile selected.

This remembers the directory and the selection by path before re-aggregating and finds them again afterwards. It also clears the hover, the crumb menu and any running transition, since those pointed at the old positions too.

Tests: a window test that switches Size, Files and back inside a folder that changes place. On main it ends up in the sibling. cargo xtask lint and cargo xtask test pass.

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