Commit Graph
94 Commits
Author SHA1 Message Date
Joshua Gosse fdc2eb330d scan: list macOS directories with getattrlistbulk, one call per buffer of entries
On macOS the walk listed each directory with std::fs::read_dir and then
called DirEntry::metadata for every file, an lstat of its full path, plus
one more per directory for the dataless flag and the device. On a home
directory of 2.6 million directories and 17 million files that is some
20 million system calls on top of the listing, each of which makes the
kernel set up per-file state.

macos.rs lists a directory with getattrlistbulk(2), which returns the
name, type, device, inode, modification time, flags, link count and sizes
of a whole buffer of entries per call, the way windows.rs already does
with FileIdExtdDirectoryInfo. The sizes are the ones stat reports:
ATTR_FILE_ALLOCSIZE is st_blocks * 512 (every fork, as st_blocks counts),
ATTR_FILE_DATALENGTH is st_size (the data fork). Checked against lstat on
151,000 files across system apps, app bundles, ~/Library and source
trees, and by a test with sparse, hardlinked, symlinked and
resource-forked files. An entry a file system describes only in part is
read with statat relative to the open directory.

Measured on an M5 Pro with 15 walk threads, warm and otherwise idle,
alternating with upstream/main:

  ~/src (88k directories, 696k files)   4.3-4.5 s -> 2.0 s
  whole home directory (2.6M, 17M)      116.6 s -> 90.4-91.6 s

User CPU for the home scan fell from 24.6 s to 9.6 s, and system CPU
from 630 s to 430 s. Trees are identical to the standard listing's with
hardlink de-duplication off (3.3 million nodes, both size modes); with it
on the totals are identical, and which name of a hardlinked file is
charged varies as it already did between runs.

Linux keeps the standard listing, whose DirEntry::metadata is already a
statx relative to the directory; Windows keeps its own.
2026-09-28 09:38:58 -04:00
Tobias Lütke 158f9cc2f0 Merge pull request #44 from tobi/mount-dedup-fix
Fix repeated mount accounting and external SSD deletion guards
2026-09-26 22:04:35 -04:00
Tobi Lutke 231541859a Refuse media exceptions for stacked mount points 2026-09-26 21:59:57 -04:00
Tobi Lutke 955108c13f Preserve independent mount data and allow external media cleanup 2026-09-26 21:58:23 -04:00
Tobi Lutke f3f37c27c4 Merge PR #36: deduplicate repeated filesystem views 2026-09-26 21:48:30 -04:00
Tobias Lütke 1664dacfd0 Merge pull request #43 from tobi/straightforward-followups
Fix macOS cmux launches without regressing Unicode arguments
2026-09-26 21:40:49 -04:00
Tobi Lutke c492be04ec Merge remote-tracking branch 'origin/main' into straightforward-followups 2026-09-26 21:23:34 -04:00
Tobi Lutke 61a09f39c5 Merge remote-tracking branch 'origin/pr/23' into straightforward-followups
# Conflicts:
#	crates/disktree-app/src/main.rs
2026-09-26 21:23:31 -04: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
Tobias Lütke d02d421890 Merge pull request #42 from tobi/windows-integration
Integrate Windows scanning, drive picker and navigation fixes
2026-09-26 21:09:30 -04:00
Tobi Lutke dda0a3cbfa Fix Windows integration: responsive volume picker, focus and ordering 2026-09-26 20:34:22 -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 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
Abdulwahb Isam e6ae089b62 doc: document the volume picker in README 2026-09-27 00:21:52 +03:00
Abdulwahb Isam 45e47e04d9 app: centre alert dialog popups in the window 2026-09-27 00:14:44 +03:00
Abdulwahb Isam 93cb8c64b7 space, app: a volume picker listing every mounted volume and its free space 2026-09-27 00:04:31 +03:00
Abdulwahb Isam 316b91ff7e windows: as_chunks instead of chunks_exact(2), which clippy 1.98 wants 2026-09-27 00:04:27 +03: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 06a8a8b470 scan: a bind mount or a second mount inside the scan is counted once 2026-09-26 07:32:46 -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
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
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
Ashwini Chaudhary 33cb67b3ed app: detach command-line launches from cmux
cmux terminates the foreground process group when AppKit activates an executable reached through the macOS command-line symlink.

Restart interactive cmux launches once in their own process group before AppKit starts. Preserve arguments, prevent recursive restarts with an environment marker, and leave non-cmux and non-interactive launches unchanged.
2026-09-25 15:40:13 -04: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