Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diskgraph

An ncdu-style disk usage analyzer that renders an actual squarified treemap instead of a horizontal bar list.

Install

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.

Usage

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 (or j/k, down/up): move selection
  • enter (or l, right): drill into the selected directory
  • backspace (or h, left): go back up
  • d: delete the selected file or directory, asks for y/n confirmation first, actually removes it from disk
  • q/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.

License

See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages