<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: patonw</title><link>https://news.ycombinator.com/user?id=patonw</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 16 Jul 2026 22:18:16 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=patonw" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by patonw in "Show HN: Leaves – A text-UI disk usage treemap visualizer"]]></title><description><![CDATA[
<p>no problem!<p>I had been exploring using an embedded database as an index, but for my current use case, waiting just under a minute to rescan my /nix/store on a weak mini-pc is acceptable.<p>Also looking to add inotify integration, which would require an index to accurately update the visualization.</p>
]]></description><pubDate>Thu, 16 Jul 2026 19:13:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=48938919</link><dc:creator>patonw</dc:creator><comments>https://news.ycombinator.com/item?id=48938919</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48938919</guid></item><item><title><![CDATA[New comment by patonw in "Show HN: Leaves – A text-UI disk usage treemap visualizer"]]></title><description><![CDATA[
<p>Thanks! I'll need to check out SpaceSniffer next time I'm on Windows.<p>Can you provide some examples of "quick actions"?<p>Currently, the visualization is purely based on file sizes in the directory structure. Package management adds some complications beyond the fact that there are at least a dozen popular managers in the wild. For one, package dependencies form a directed graph rather than a hierarchical tree, so credit assignment is vague. Two packages can depend on the same two dependencies. Do we give full credit to both, one or assign partial credit? Would we weight partial credit evenly or by dependent size or some external factor/</p>
]]></description><pubDate>Thu, 16 Jul 2026 18:54:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=48938669</link><dc:creator>patonw</dc:creator><comments>https://news.ycombinator.com/item?id=48938669</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48938669</guid></item><item><title><![CDATA[Show HN: Leaves – A text-UI disk usage treemap visualizer]]></title><description><![CDATA[
<p>GUI disk analyzers are great for figuring out what's filling up your laptop/desktop drive.<p>On containers or remote servers, the options are limited to purely text based
utilities (e.g. du) or list-centric TUIs (e.g. ncdu) which are usually limited
to viewing one directory at a time.<p>I created <i>leaves</i> to fill that gap.<p>Inspired by classic utilities like WinDirStat and KDirStat, it uses a
2-dimensional treemap^1 visualization to show the entire directory hierarchy
with proportionally sized rectangles.<p>It's performant enough to handle millions of files, thanks to Rust and
multi-threading. However, block characters aren't as suited as pixels for
resolving a large number of items. Leaves can show file-type summaries per
directory or partition the top-level directories by extension, allowing you to
see not only where space is being used, but also how.<p>For instance, I can see the largest chunk of my home directory is taken up by
uv caches for python and old Linux ISOs that I could easily re-download if
needed. Or in a particular container, +600MB is used by standard Rust
documentation and tutorials, and that it is the only location with HTML/JS files,
when only the libraries and build tools are needed (note to self: remember to
use the <i>minimal</i> profile next time).<p>^1: <a href="https://github.com/shundhammer/qdirstat/blob/master/doc/Treemap.md" rel="nofollow">https://github.com/shundhammer/qdirstat/blob/master/doc/Tree...</a></p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48936389">https://news.ycombinator.com/item?id=48936389</a></p>
<p>Points: 60</p>
<p># Comments: 19</p>
]]></description><pubDate>Thu, 16 Jul 2026 16:03:43 +0000</pubDate><link>https://github.com/patonw/leaves</link><dc:creator>patonw</dc:creator><comments>https://news.ycombinator.com/item?id=48936389</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48936389</guid></item></channel></rss>