Repository navigation
Turn the trail into a path field to type or paste where to go - #90
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 trail shows where you are but could not be typed into, so going somewhere known meant clicking down to it or starting again from the command line. A click on the empty space beside the trail, or ctrl l, now makes the trail a text field holding the current path, as a file manager's address bar does: Enter goes there, Escape or a click elsewhere puts the trail back. A path inside the tree is a step within it, one above the root widens the scan and keeps what is measured, and anything else is scanned from scratch. A file names its directory. A path that does not exist, or is not a full one, is said in a notice and the field stays open to fix. Over SSH the typed path is the host's: it is never looked up on this machine, it must be a POSIX path, and the tree, or a scan over SSH, says whether it is there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
armada45-pixel
force-pushed
the
path-field
branch
from
November 29, 2026 21:05
6587556 to
2e7f601
Compare
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. Rebased onto 1.5.0 (73bdbb3); they touch neighbouring lines in
state.rs,views.rsandtests.rs, so whichever merges later will need another rebase; I'll do those as they come up.A click on the empty space beside the breadcrumb trail, or
ctrl l(⌘Lon macOS), turns the trail into a bordered text field holding the current path, like a file manager's address bar. Copy it, or type or paste another and press Enter. Escape, or moving focus elsewhere, puts the trail back.~is the home directory; a bareD:on Windows is that drive's root; quotes from Explorer's "Copy as path" are trimmed.While the field is open, keys are text:
c,?and the rest do not act on the screen behind it.Why. The trail shows where you are but could not be typed into. Going to a known path meant clicking down to it or restarting from the command line.
Verified.
cargo xtask lintis green on Windows and all 100 disktree-app tests pass, including a new one for SSH mode. 9 tests in disktree-cli, disktree-core and disktree-scanner (btrfs, hardlink and cache tests) fail on Windows on an unchanged 1.5.0 too, so the fullcargo xtask testrun is red there for reasons outside this PR.Since 1.5.0. The field sits next to the new source button. In an SSH session a typed path is read from the remote tree, or widened or rescanned over SSH; it is never looked up on this machine.
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. No test covers closing on blur, Enter in the real input (the tests call
go_to_path), or~and bare drive-letter expansion.⌘Lis untested.🤖 Generated with Claude Code