Skip to content

List the volume picker's volumes by name - #95

Open
armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:volumes-by-name
Open

armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:volumes-by-name

Conversation

@armada45-pixel

Copy link
Copy Markdown
Contributor

One of a set of small PRs that replace #87 and #88, one feature each. They touch neighbouring lines in state.rs, views.rs and tests.rs, so whichever merges later will need a rebase; I'll do those as they come up.

The volume picker (v) ordered volumes by how full they are, so a disk moved in the list as it filled. This orders them by mount point or drive letter, ignoring case, as a file manager lists drives.

Only the app's ordering changes; disktree_core::space::volumes() still returns fullest first.

Verified. cargo xtask lint and cargo xtask test are green on Windows (69 app tests, 157 core); a new test covers the ordering.

Not verified. Nothing was run on Linux or macOS. On this branch the feature was exercised through the window-harness tests only; the app was not launched from it.

🤖 Generated with Claude Code

The picker ordered volumes by how full they are, so a disk moved in the
list as it filled and had to be looked for each time. Order them by mount
point or drive letter instead, without regard to case, as a file manager
lists drives: a disk is found where its name says.

Only the picker's order changes; disktree_core::space::volumes() still
returns the fullest first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant