HeadlinesBriefing favicon HeadlinesBriefing.com

leaves: Text-mode Disk Usage Visualizer

Hacker News •
×

Leaves is a text-mode disk usage analyzer that offers a 2-dimensional treemap visualization, inspired by GUI tools like WinDirStat. It displays the entire directory hierarchy with proportionally sized rectangles, making it suitable for containers and remote servers where graphical interfaces are impractical.

Developed in Rust for performance, Leaves can handle millions of files. It allows users to see not only where space is being used but also how, by showing file-type summaries per directory or partitioning top-level directories by extension. For example, it can reveal large caches or unnecessary documentation consuming significant space.

The utility supports navigation through the hierarchy using keyboard or mouse. Users can expand/deflate directories and switch to an 'x-ray' mode to group files by type. Leaves can ignore files listed in .gitignore and .ignore, with options to include them. Configuration is managed via a TOML file, allowing customization of themes and appearance, with built-in themes like 'fall', 'spring', 'greys', and 'mono'.