Repository navigation
Show the files directly inside a folder in the inspector - #24
Merged
phalladar merged 2 commits intoNov 25, 2026
Merged
Conversation
A folder's total includes the files sitting directly in it, which have no row in the sidebar, so a folder can look much larger than its subfolders add up to. The inspector now shows their count and size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
phalladar
approved these changes
Nov 25, 2026
phalladar
left a comment
Owner
There was a problem hiding this comment.
Thanks for this! It's a small change that answers a question the app couldn't answer before, and I agree with putting it in the inspector instead of adding a <Files> row. The staircase of rows you described sounds like the right reason to skip that.
Looks good to merge. Two tiny optional thoughts, neither blocking:
- For a folder with no files of its own, the row reads "0 · Zero KB". It might be worth hiding it in that case.
- The size follows the toolbar's metric, while the File Size and Allocated rows above it show both. That's fine as is; I'm only mentioning it in case you'd rather match one of them.
I also merged this together with #25 locally, and the two combine cleanly. Thanks again!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
My Downloads folder showed 11.5 GB in the sidebar, but its subfolders added up to a fraction of that. Most of the space was in files sitting directly in Downloads, which have no sidebar row, and nothing in the app said how much they took. I had to sum the subfolders in my head to find out.
Change
The inspector now shows the count and size of the files directly inside the selected folder, in the current size metric, below the recursive file count:
It filters the selected folder's children on each selection; no new stored state.
I first tried a
<Files>row in the sidebar, sorted among the subfolders as WinDirStat does, but in chains of folders that each hold one small file it piles up a staircase of rows away from their folders. The inspector line avoids that with no special cases. If you'd still like the WinDirStat-style row, I have it ready and can open it as a separate PR.Tested on macOS 27 (local SDK 15 build),
swift buildandswift test.🤖 Generated with Claude Code