An ncdu-style disk usage analyzer that renders an actual squarified
treemap instead of a horizontal bar list.
git clone https://github.com/arshnah/diskgraph
cd diskgraph
cargo build --release
./target/release/diskgraph [path]
Defaults to the current directory if no path is given.
Box size is proportional to file/directory size (a real squarified treemap
layout, Bruls/Huizing/van Wijk, the same class of algorithm ncdu/
WinDirStat use for keeping box aspect ratios sane). Color cycles by
directory depth.
Controls:
tab/shift+tab(orj/k,down/up): move selectionenter(orl,right): drill into the selected directorybackspace(orh,left): go back upd: delete the selected file or directory, asks fory/nconfirmation first, actually removes it from diskq/esc: quit
Deletion is real (fs::remove_file/fs::remove_dir_all), confirmed once,
no undo. Sizes recompute up the tree immediately after a delete.
Live filesystem watching and fuzzy path search were scoped out as stretch goals, not implemented here, this is a single-scan-per-launch tool.
See LICENSE.