Commit Graph
74 Commits
Author SHA1 Message Date
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 daa93b5a23 Merge remote-tracking branch 'origin/pr/39' into windows-integration
# Conflicts:
#	crates/disktree-app/src/tests.rs
2026-09-26 20:23:55 -04:00
Tobi Lutke 22b6c2b3da Merge remote-tracking branch 'origin/pr/37' into windows-integration 2026-09-26 20:23:25 -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
Tobi Lutke f4b197fde2 Merge remote-tracking branch 'origin/pr/34' into windows-integration 2026-09-26 20:23:01 -04:00
Tobi Lutke 4cface677f Merge remote-tracking branch 'origin/pr/33' into windows-integration 2026-09-26 20:23:00 -04:00
Shishir Pai ff139e62d5 docs: describe the elevated scan and new guards 2026-09-26 16:54:16 -04:00
Shishir Pai 5f374c3b47 feat(app): offer restart as administrator on Windows 2026-09-26 16:54:16 -04:00
Shishir Pai 4d6a65e00c feat(removal): refuse profile folders and flush after elevated removals 2026-09-26 16:54:16 -04:00
Shishir Pai d2539490fa perf(insights): skip subtrees too small to list 2026-09-26 16:54:16 -04:00
Shishir Pai 03d3e7a159 perf(classify): classify without per-directory allocations 2026-09-26 16:54:16 -04:00
Shishir Pai 0b1725d40e feat(scan): read the NTFS master file table when elevated
Elevated scans of a whole NTFS drive read the master file table in large parallel reads instead of walking directories; any failure falls back to the walk. The walk also allocates once per entry, tallies progress per directory and folds hardlink de-dup into the parallel aggregate pass.
2026-09-26 16:54:16 -04:00
Fabio Rehm 319d0d4ada fix: wire the mouse side buttons to back and forward
The README has always said the mouse's side buttons retrace the visited
directories, and on_mouse_down had the two MouseButton::Navigate arms for
it, but nothing ever delivered buttons 8 and 9: the mosaic registered
listeners per button, for Left and Middle only. The arms were dead code.

Replaced the two registrations with on_any_mouse_down, so every button
reaches on_mouse_down and the Navigate arms work. One listener rather
than four, and the per-button form would have needed a new registration
for each button the platform names.

Guarded the arms on Screen::Explore, matching the alt-arrow path: on the
review screen the marked list is not somewhere history should move.

The help screen and the hover card on `<` and `>` named only the keys,
so the in-app bindings were narrower than the README's. Both now mention
the side buttons.
2026-09-26 17:29:02 -03:00
rteoo 358e4104bb fix(windows): satisfy icon build lint 2026-09-26 11:36:59 -03:00
rteoo 816effae97 fix(windows): embed icon in executable 2026-09-26 10:32:00 -03:00
Tyler South 8a3f8ae9c1 scan: escape or Cancel stops a scan without showing a partial tree 2026-09-26 07:38:16 -04:00
Tyler South c2629ead54 classify: Steam library folders on other drives and Emulation are media 2026-09-26 07:37:32 -04:00
Tyler South 189cacedb1 app: switching Size and Files keeps the directory and the selection 2026-09-26 07:26:55 -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
Tobias Lütke 747cb77766 Merge pull request #24 from tobi/release-0.10.1
release 0.10.1
v0.10.1
2026-09-25 14:30:05 -06:00
Tobi LütkeandClaude Opus 5.5 91d0ada4ce release 0.10.1: gpui-omarchy 0.1.3
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 20:13:57 +00:00
Tobias Lütke cd1a9d8afb Merge pull request #22 from tobi/omarchy-0.1.3
gpui-omarchy 0.1.3, and the quarantine fix for macOS downloads
2026-09-25 14:04:10 -06: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
Tobias Lütke e4ed4a8eb8 Merge pull request #21 from tobi/release
Release 0.10.0: builds for Linux, macOS and Windows on x86_64 and aarch64
v0.10.0
2026-09-25 11:12:46 -06: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
Tobias Lütke 033113da20 Merge pull request #20 from tobi/delete-list
Review: save the delete list, or copy it as a prompt for an agent
2026-09-25 10:48:53 -06:00
Tobias Lütke 97127774d6 Merge pull request #19 from tobi/parity
Platform parity: shortcuts, theme, Windows caches, hidden and mount guards
2026-09-25 10:48:32 -06: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 a64a58060d removal: read Windows' volume list, so a volume mounted inside a target is refused
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:17:59 +00:00
Tobi LütkeandClaude Opus 5.5 2ed6720638 classify: Windows temp, crash dumps, caches, Recycle Bin and sync folders
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:17:59 +00:00
Tobi LütkeandClaude Opus 5.5 a95dce783b git: no console window per probe on Windows
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 16:17:59 +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
Tobias Lütke 7d235318b1 Merge pull request #17 from tobi/cross-platform
macOS and Windows support, merged PRs, and a security pass
2026-09-25 09:58:28 -06:00
Tobi LütkeandClaude Opus 5.5 46711fc816 removal: a target under the Data volume's root is inside it
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 15:39:33 +00:00
Tobi LütkeandClaude Opus 5.5 b9ba523a92 removal: follow links above the scanned root, only refuse them below
Walking from / with O_NOFOLLOW refused every path under /var and /tmp
on macOS, which are links. Open the root as named and refuse links only
between it and the target, as the plan does. Also two tests that assumed
Unix now run or skip on Windows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 15:21:12 +00:00
Tobi LütkeandClaude Opus 5.5 2ee640a448 ci: read-only token for CI, and the release tag through the environment
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:27:16 +00:00
Tobi LütkeandClaude Opus 5.5 d37870cdea removal: refuse names Win32 misreads, links on the way down, and home by its real path
- Windows strips trailing dots and spaces and maps NUL/COM1 to devices,
  so a scanned `C:\Users.` would have removed `C:\Users`. Refused.
- The trash (everywhere) and removal on Windows follow a link on the way
  to a target out of the scanned root. The real parent is compared with
  the real root, in the plan and again on the worker.
- The home directory is also matched by its canonical path, so a link
  such as /home -> /data/home no longer hides it from 'contains home'.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:27:05 +00:00
Tobi LütkeandClaude Opus 5.5 f2a0056960 git: a checkout's config can no longer run programs through the status probe
`git stash list` is `git log`: a repository that sets log.showSignature
and gpg.program ran that program when the Explore screen probed it.
Count stashes from the reflog, and turn off every program-valued key and
network path the probe could reach.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:24:31 +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 1220150762 removal: close the path race, and judge mounts again before removing
Permanent deletion opened its target by full path, following any
symlink on the way down. A directory swapped for a link after the scan
(a shared /tmp, say) redirected the removal: `/tmp/d/x` marked, `d`
made a link to `~`, and `~/x` went. The way down is now opened one
component at a time with O_NOFOLLOW (O_PATH on Linux), and the target
removed with unlinkat relative to its parent. The scanned root is
canonical, so a marked path never legitimately has a link on it.

The plan is judged against a mount table read on a background thread,
empty until the first read lands and up to two seconds old after. The
removal worker now reads it fresh and checks each target for a mount
point on it or inside it before touching anything. Permanent deletion
stopped at a mount boundary already; the trash did not.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 14:14:22 +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
Tobi Lütke df03ca8b6e Merge remote-tracking branch 'pr/13' into cross-platform
# Conflicts:
#	README.md
#	crates/disktree-app/src/git.rs
#	crates/disktree-core/src/removal.rs
2026-09-25 14:00:43 +00:00
Tobi Lütke 9df79891ed Merge remote-tracking branch 'pr/12' into cross-platform 2026-09-25 14:00:26 +00:00
Tobi Lütke 83c7bcc47a Merge remote-tracking branch 'pr/10' into cross-platform 2026-09-25 14:00:26 +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