Skip to content

Make the key hints along the bottom buttons - #93

Open
armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:clickable-key-hints
Open

armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:clickable-key-hints

Conversation

@armada45-pixel

@armada45-pixel armada45-pixel commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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.rs and tests.rs, so whichever merges later will need another rebase; I'll do those as they come up.

The bar along the bottom already names the key for everything worth doing, but a hand on the mouse had to leave it to use any of them. Each hint is now a framed, evenly padded button for its key, on the review screen's footer as well.

  • A click goes through Disktree::press, which runs the key by name through the same dispatch the keyboard uses, so the two cannot drift apart.
  • [ ] depth names two keys and a click can only be one: it draws one level more and starts over past the deepest.
  • hjkl move is four keys with no single action, so it stays a label.
  • Nothing fires behind the confirm dialog or the volume picker.

Verified. cargo xtask lint is green on Windows and all 98 disktree-app tests pass. 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 full cargo xtask test run is red there for reasons outside this PR.

Since 1.5.0. The review footer's new save-script and copy-script hints are buttons too, and the hints a remote review hides stay hidden.

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 bar already names the key for everything worth doing, and a hand on
the mouse had to leave it to use any of them. Each hint is now a framed
button for its key, on the review screen's footer too, and a click runs
the same dispatch the keyboard does, so the two cannot drift apart. The
depth hint names two keys and a click can only be one: it draws one level
more and starts over past the deepest. `hjkl` is four keys with no single
action, so it stays a label.

A click takes the keyboard from the treemap, so the hint hands it back
unless the key opened a dialog that wants it.

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