Commit Graph
3 Commits
Author SHA1 Message Date
Tobi Lutke cd41a9f7c8 disktree-app: a GPUI treemap explorer for Omarchy
Explore a scanned tree as a mosaic, mark what should go, review the list
and remove it, with the volume's free space live on screen.

- Keyboard and mouse throughout; keys act on the tile under the pointer
  when the pointer moved last. Cursor tooltip above the whole window.
- The wheel magnifies toward a directory until it fills the view, then
  goes into it; tiles telescope from where they were to where they are.
- Review screen with a segmented trash/permanent choice. The trash is the
  default when available; a permanent deletion asks in an alert dialog.
- Layout follows the gpui-kit design guides: every size on one rem scale,
  ctrl =/-/0 interface zoom, and colours derived from the Omarchy theme.
- Window-harness tests draw frames and press keys, end to end.
2026-09-24 15:56:19 -05:00
Tobi Lutke 60209e9cae disktree-core: scan, layout, free space and removal
- scan: dust's approach — one rayon scope, a +1 completion counter per
  directory, bottom-up aggregation — with live progress and cancellation.
  Disk usage by default, hardlinks counted once, symlinks not followed.
- tree: nodes with derived totals; aggregate() is the single source.
- treemap: squarified layout in viewport pixels, a name band per
  subdivided directory, and crumbs that always address the scanned tree.
- space: statvfs, and the projection after removing marked bytes.
- removal: guarded plans (root, home, scanned root, mount points and
  paths outside the root are refused), rm -rf semantics without a shell,
  and trash via trash-put, gio or a built-in XDG implementation.
2026-09-24 15:56:19 -05:00
Tobi Lutke 406dda52d2 Workspace with strict lint gates
A three-member workspace (core, app, xtask) with omatrack's lint policy:
clippy::all and clippy::pedantic are errors, nursery warns, and every
deliberate exception is listed with its reason. `cargo xtask lint` runs
rustfmt --check and clippy with -D warnings; it reports, never fixes.
2026-09-24 15:56:19 -05:00