Repository navigation
Remember the view choices between launches - #92
Open
armada45-pixel wants to merge 1 commit into
Open
armada45-pixel wants to merge 1 commit into
armada45-pixel wants to merge 1 commit into
Conversation
The depth, Size / Files / Age, hidden files, apparent size, and the side panel's width and whether it is shown were back at their defaults on every launch. They are now written to `disktree/settings`, beside the Power Efficiency preset, as each one changes; the panel's width, which moves continuously under a drag, is written on the way out. Reading is lenient, so an older and a newer build can share the file and a hand edit gone wrong costs one setting. The saved values are where the arguments start, so a flag on the command line still overrules them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One of a set of small PRs that replace #87 and #88, one feature each. They touch neighbouring lines in
state.rs,views.rsandtests.rs, so whichever merges later will need a rebase; I'll do those as they come up.The depth, Size / Files / Age, hidden files, apparent size, and the side panel's width and whether it is shown went back to their defaults on every launch. This writes them to
disktree/settings, beside the Power Efficiency preset, and reads them at startup.key=valueper line. Reading is lenient: an unknown key or an unusable value is skipped and the rest still apply, so an older and a newer build can share the file and a bad hand edit costs one setting.--depth,--metric,-aand-Hstill overrule them.Verified.
cargo xtask lintandcargo xtask testare green on Windows (73 app tests, 157 core). New tests cover the round trip through a temporary file, lenient parsing, the depth bounds, saved values versus flags, and a window-harness test that presses],t,pand reads the file back.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: the real settings path, the load at startup and the save on quit after a panel drag are covered by reading the code, not by a run.
🤖 Generated with Claude Code