50 Commits
Author SHA1 Message Date
Tobi Lutke e85f8a749b refactor: switch workspace all-in on disktree-scanner and remove legacy scanners 2026-11-25 15:23:00 -05:00
Tobi Lutke 2f5b1a4b92 app: scan home directly, default depth 4, and clean up location chooser 2026-11-25 10:31:40 -05:00
Tobi Lutke dfb97ac66d Merge pull request #89 from armada45-pixel/help-close 2026-11-25 09:52:34 -05:00
Tobi Lutke c3ce568e54 Merge pull request #126 from jamerrq/follow-omarchy-font 2026-11-25 09:52:27 -05:00
Tobi Lutke b72ec05b54 Merge pull request #108 from ai94iq/feat/windows-installer 2026-11-25 09:52:13 -05:00
Jamer Rebolledo c57f6f9e1f app: follow the Omarchy font on every surface 2026-11-09 23:48:03 -05:00
Tobi Lutke 9b18b272ca app: show live treemap previews with stable sidebar progress 2026-10-22 18:32:27 -04:00
Tobi Lutke 71868f672a scan: profile SSH indexing and deduplicate hardlinks on the desktop 2026-10-22 18:13:57 -04:00
Tobi Lutke 8d98a855e8 scan: stream live SSH progress and accept deeply nested trees 2026-10-22 17:41:01 -04:00
Tobi Lutke 6a234aa4c3 app: harden source selection and verify chooser lifecycle 2026-10-22 17:05:57 -04:00
Tobi Lutke 1e17fcc86b ssh: discover remote mount roots without starting a scan 2026-10-22 16:47:24 -04:00
Tobi Lutke 8b55208fdc scan: stream SSH walks with bounded memory and strict mount boundaries 2026-10-22 16:41:46 -04:00
Tobi Lutke 2c22ed4d00 build: embed static Linux scanners and deploy them on demand 2026-10-22 16:22:26 -04:00
Abdulwahb Isam 7ee70c5846 disktree: docs: document the Windows setup
README: the setup is the default Windows download, per-user unless all
users is chosen, unsigned so SmartScreen needs More info then Run anyway;
the zip remains. AGENTS.md: how to compile the setup locally, and that its
AppId must never change.

Verified: cargo xtask lint is green.
2026-10-16 08:51:46 +03:00
armada45-pixelandClaude Opus 5.5 b44c774c07 Close the key list by a button and by a press outside it
The list `?` opens could only be closed from the keyboard, so a hand on
the mouse had to go back to it. Its heading now ends in a Close button,
and a press outside the card closes it as Escape does. A press on the
card is the card's own, and neither reaches the screen behind.

The dimmed page and its heading are `modal` and `page_header`, which
take the function that closes them, so another page can be built on
them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 12:04:09 +07:00
Tobias Lütke 536f037e0f Merge pull request #56 from itsmunzir/fix/cross-volume-projection
fix(space): exclude foreign-volume marks from free-space projection
2026-10-04 13:03:22 -04:00
Tobias Lütke 21c81f4d62 Merge pull request #49 from aronchick/fm/disktree-reveal
Reveal a tile in the file manager on right-click
2026-10-04 12:26:38 -04:00
Mohammed Munzir dfd1fdc649 fix(space): exclude foreign-volume marks from free-space projection
The free space meter measures the scanned volume, but the projection added
every marked target's bytes. A mark on another volume -- which -X crosses
into, and a disk mounted inside the tree can hold -- gives its space back
there, so the meter lent one disk another's.

Attribute each target to the volume its bytes return to, by the rule the
scan itself bounds a volume with (mount source and type, not a device
number), and project only what comes back to the scanned volume. Marks on
other volumes, snapshot subvolumes, and paths the mount table cannot place
are reported as "not counted here" rather than added; every marked target
is still removable, and the delete list still totals every byte.
2026-09-28 21:25:34 +03:00
David Aronchick 010df88bc3 Reveal a tile in the file manager on right-click
Right-clicking a tile in the treemap selects it and shows it in Finder,
File Explorer or the file manager, the same reveal `o` already does.
The platform work is GPUI's reveal_path, which runs detached on every
system. On macOS a ctrl-click arrives as a right-click, so it reveals
too; cmd-click still marks.
2026-09-27 16:22:15 -07:00
kuishou68 9540cace7b docs(readme): the t key cycles three modes, not two
The in-app key reference (views.rs help_overlay) says t switches Size, files or age - what areas and colours say, and state.rs cycles mode_index() over three modes (Size/Files/Age, Age mode colours by last write). The README key table still described the old two-mode behaviour (rank by size or by file count), which contradicts both the app and the Size / Files / Age switch the README itself describes elsewhere.

Align the row with the in-app help text.
2026-09-28 02:44:05 +08:00
Tobias Lütke 74709debc8 Merge pull request #27 from DouglasdeMoura/aur-packages
README: document the AUR packages
2026-09-26 21:23:00 -04:00
Tobi Lutke b2d320a6a5 Merge remote-tracking branch 'origin/pr/41' into windows-integration
# Conflicts:
#	README.md
#	crates/disktree-app/src/views.rs
#	crates/disktree-core/src/windows.rs
2026-09-26 20:24:34 -04:00
Tobi Lutke 57375fcc13 Merge remote-tracking branch 'origin/pr/40' into windows-integration
# Conflicts:
#	crates/disktree-app/src/tests.rs
2026-09-26 20:24:12 -04:00
Tobi Lutke aa54126fd6 Merge remote-tracking branch 'origin/pr/35' into windows-integration
# Conflicts:
#	crates/disktree-app/src/tests.rs
2026-09-26 20:23:25 -04:00
Abdulwahb Isam e6ae089b62 doc: document the volume picker in README 2026-09-27 00:21:52 +03:00
Shishir Pai ff139e62d5 docs: describe the elevated scan and new guards 2026-09-26 16:54:16 -04:00
Tyler South 8a3f8ae9c1 scan: escape or Cancel stops a scan without showing a partial tree 2026-09-26 07:38:16 -04:00
Aditya Gupta 6a98a9ae39 build: pin the toolchain so a fresh clone can't fail on a stale default
`cargo xtask bundle` from a fresh clone failed with `rustc 1.94.0 is not
supported by the following package: xtask@0.10.1 requires rustc 1.97` when
the machine's `rustup default` was older than the workspace MSRV. The message
blames xtask only because `.cargo/config.toml` aliases `cargo xtask` to
`cargo run -p xtask`, so it is the first package in the build graph; cargo
rejects the whole workspace before anything compiles.

CI pins 1.97 but nothing provisioned it for builders. rust-toolchain.toml
pins the same version, with the clippy and rustfmt that `make lint` needs, so
rustup fetches it on the first build and local lints match the gate.

Verified from this commit: `cargo xtask --help` (the command that failed)
runs, `cargo xtask lint` is green, and `cargo xtask bundle` produces
target/bundle/disktree-0.10.1-aarch64-macos.zip.
2026-09-26 10:50:07 +05:30
Douglas Moura 9dc507edcf README: yay, not paru (it is what Omarchy ships) 2026-09-25 18:02:23 -03:00
Douglas Moura 2d2298ee34 README: document the AUR packages 2026-09-25 17:56:39 -03:00
Tobi LütkeandClaude Opus 5.5 ba0258db8f gpui-omarchy 0.1.3, and the quarantine fix for macOS downloads
gpui-omarchy 0.1.3 needs gpui-kit 0.6.6, which brings gpui-pre 0.3.6.

The README gives the xattr command that clears the quarantine mark an
unsigned download carries, so Gatekeeper stops calling the app damaged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 19:48:33 +00:00
Tobi LütkeandClaude Opus 5.5 8b662004a4 release 0.10.0, built for every platform on Intel and ARM
Linux, macOS and Windows, each x86_64 and aarch64, on native runners.
The release is drafted first and published once every build is in, so
a failed build never leaves a public release missing downloads. CI
tests the three architectures it did not run on before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:50:57 +00:00
Tobi LütkeandClaude Opus 5.5 1682463869 review: save the list, or copy it as a prompt for a coding agent
Two ways to hand the marked list on instead of acting on it. `s` saves
the paths the plan would act on, one per line. `a` copies instructions
for an agent: free the space by removing exactly these, checking each
first (unpushed git work, a tool's own clean command), trash over delete,
and report back. A name with a control character is left out of the list
and escaped in the prompt, so a newline cannot pass for another path or
close the list and carry on as instructions.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:24:03 +00:00
Tobi LütkeandClaude Opus 5.5 670407f37e removal: Homebrew on Linux, Guix and the extra lib dirs are system trees; so are Windows' page and hibernation files
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:20:24 +00:00
Tobi LütkeandClaude Opus 5.5 e1851c624b scan: the hidden attribute hides an entry on Windows, as Explorer does
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:19:45 +00:00
Tobi LütkeandClaude Opus 5.5 41328cdc67 app: follow the system's light or dark setting on Windows, GNOME and KDE
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:18:54 +00:00
Tobi LütkeandClaude Opus 5.5 13fd9ee158 app: Open Folder, rescan, quit and reveal shortcuts on Linux and Windows
They were bound on macOS only, so Open Folder could not be reached at all
elsewhere. ctrl-o, ctrl-r and F5, ctrl-q, ctrl-w and ctrl-shift-r; the
help names ctrl-o and File Explorer on Windows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:17:59 +00:00
5cb0284345 README: say where to get Rust on every platform
From tobi/disktree#2.

Co-authored-by: Lucas Arruda <88818+LucasArruda@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:10:02 +00:00
Tobi LütkeandClaude Opus 5.5 41331f363f macOS: ⌘[ and ⌘] for back and forward, and a Go menu
What Finder and Safari use; alt-arrows from #12 still work. Only on the
explore screen, where the history buttons are.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:16:43 +00:00
Tobi LütkeandClaude Opus 5.5 f39f96e62f Merge pr/14 (Windows) onto the macOS port
One set of removal guards for all three platforms: guard_key folds
macOS firmlinks and case, and now Windows case and verbatim prefixes,
so within/same from #14 become key comparisons. System trees are one
keyed list per platform.

Fixed while merging:
- plan() found home through $HOME, which Windows does not set, so every
  home guard was off there; std::env::home_dir() instead.
- Scan: #14's Listed/Facts shape with #13's never-scanned paths,
  dataless iCloud folders and track-only-shared-inodes; OneDrive
  cloud-only folders are skipped the same way on Windows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:14:22 +00:00
Tobi Lütke 21157ca878 README: restore the history and window-class notes 2026-09-25 14:01:06 +00:00
Oleg Shevchuk 82d73fbcf8 CI and releases on Windows; README
- CI runs the lint gate and the tests on windows-2025 beside Ubuntu, on
  the same pinned toolchain.
- A tag also publishes disktree-<version>-x86_64-windows.zip, built after
  the Linux job, which checks the tag and creates the release. The C
  runtime is linked in, so it runs without the Visual C++
  redistributable.
- README says how to install on Windows and what differs there; AGENTS
  points at windows.rs and says how to run the gate without make.
2026-09-25 15:09:27 +05:00
Oleg Shevchuk cac3d76c3f core: refuse a directory that holds the home directory
Removing a directory takes what is inside it. In a whole-disk scan on
Windows, C:\Users is an ordinary directory that passes every other
guard, and so is /home on a Linux install without a separate volume:
marking either would remove the home directory the guards are there to
protect.
2026-09-25 15:09:09 +05:00
Sebastian Sieber cbdfe1c332 macOS support: native Trash, APFS-aware scans, a signed app bundle
disktree built and drew on macOS already, through GPUI's Metal backend,
but the Linux plumbing underneath did not carry over. This makes it work
well there, without unsafe code, and tightens removal safety for every
platform on the way.

Trash and removal
- On macOS always the system Trash, through NSFileManager (the trash
  crate): the same move as Finder's, into the item's own disk's Trash.
  gio/trash-put/XDG would put files in ~/.local/share/Trash, which Finder
  never shows.
- Refuse a directory holding the home directory (/Users is on the same
  volume as / on macOS) or a system tree (/opt holds /opt/homebrew); add
  /System, /Library, /private, /opt/homebrew, /cores, /Network.
- Refuse a directory with a mount inside it; on macOS the mount list comes
  from /sbin/mount, read on a background thread.
- Permanent deletion walks the tree itself and stops at a mount boundary,
  like rm -rf --one-file-system (the walker is from #10).
- Guards see through /System/Volumes/Data spellings and, on macOS, case.

Scanning
- Skip /System/Volumes/Data when scanning /: it is /Users, /Applications
  and the rest again under firmlinks, so / was counted twice.
- Whole disk (g, --disk) works: the disk root and device come from statfs.
- Never list cloud-only (dataless) iCloud/File Provider folders, which
  would download them.
- Keep a file's identity only when it has more than one name.

App
- Explain unreadable items when Full Disk Access is missing, with a button
  to the privacy settings.
- A menu bar: Open Folder… (⌘O), Show in Finder (o, ⌘⇧R), Rescan (⌘R),
  Hide, Quit; closing the window quits; other ⌘ chords are not read as
  plain letters; help shows ⌘.
- Follow the system light/dark appearance when no Omarchy theme exists.
- Worth a look knows Xcode DerivedData, DeviceSupport and ~/Library/Logs.
- git: skipped without the developer tools (its stub opens a dialog), and
  never runs a checkout's programs: fsmonitor, hooks and pager off, and no
  status for a checkout that defines its own filter drivers.

Packaging
- cargo xtask bundle builds disktree.app and a zip: Info.plist (bundle id
  io.github.tobi.disktree, macOS 11+), an icon drawn from an SVG on the
  macOS grid, ad-hoc or Developer ID signing, and --notarize.
- make install on macOS puts the app in ~/Applications and links
  ~/.local/bin/disktree to it.
- CI lints, tests and bundles on macOS; the release adds an arm64 macOS
  zip, signed and notarized when the repository has the Apple secrets.
2026-09-25 17:29:55 +08:00
Tobi Lutke 010f8ca972 README: marking covers everything inside 2026-09-24 17:19:51 -06:00
Tobi Lutke 92f4031216 0.9.0: screenshot, CI, and release builds
- The README opens with a screenshot, and says how to install a release.
- CI lints and tests every push and pull request on a pinned toolchain.
- Pushing a v* tag builds a release on the oldest supported Ubuntu (for
  glibc reach), checks the tag against Cargo.toml, runs the tests, and
  publishes disktree-<version>-x86_64-linux.tar.gz with a checksum. The
  archive carries install.sh, which installs the binary, desktop entry
  and icon into ~/.local without a Rust toolchain.
- The desktop entry passes a path (%f), not a URI, to disktree.
2026-09-24 17:13:38 -05:00
Tobi Lutke e2c397b4b0 The trail moves to the top bar, with sibling menus
Each crumb in the tree has a ▾ listing its siblings, largest first, with a
share bar in each one's colour and its size: a jump sideways without
going up. The current crumb opens it on a click too. Arrows, Home, End
and Enter work inside it; Escape or a click outside closes it. A deep
trail folds its middle into an ellipsis.

The scan totals move under it, as one quiet line beside the legend.
2026-09-24 16:55:14 -05:00
Tobi Lutke c11c86f50f app: a trail from /, and typeahead filtering
- The trail always starts at /. Directories above the scanned root are
  dimmer; clicking one widens the scan to there, reusing the tree already
  measured, with the current view kept until the wider tree lands. g goes
  to the whole disk. The Home | Whole disk switch is gone.
- / filters: as you type, only matches keep their colour (the directories
  holding them step back less); Enter lays out only the matches at their
  size, with the largest selected; Escape clears. The search runs off the
  UI thread, newest keystroke wins, and an early Enter applies on arrival.
2026-09-24 16:51:31 -05:00
Tobi Lutke f67fd56174 Whole-disk launcher action; README for the redesign 2026-09-24 16:42:08 -05:00
Tobi Lutke a2b03f3e8c README, agent guide and MIT license 2026-09-24 15:56:19 -05:00