Skip to content

Land the developer cleanup and sidebar PRs - #209

Merged
momenbasel merged 20 commits into
mainfrom
integration/dev-cleanup
Nov 19, 2026
Merged

momenbasel merged 20 commits into
mainfrom
integration/dev-cleanup

Conversation

@momenbasel

Copy link
Copy Markdown
Owner

Lands the reviewed feature PRs with merge commits so each contributor keeps their commits: #199, #186, #196, #197, #201 and the CLI half of #202.

Follow-ups on top: Rust targets and node_modules now share one home walk per scan (Smart Scan walked home twice), the CLI no longer lists or deletes orphaned worktree folders, an unused sidebar color is gone, the in-repo cask matches the tap, and el/fa get the new keys as English fallbacks.

Tested locally: xcodebuild test (230 passed, 1 skipped without cargo), universal Release build, cli swift test (70 passed) and release build.

adivardhan1000 and others added 20 commits October 12, 2026 13:14
Add a global button in the selection bar that selects every non-keeper
copy across all duplicate groups in one click. Keepers are never
selected. Add the "Select All Copies" string to all Localizable.strings.
Adds a git worktree scanner and remover to puremac purge. Covers worktrees
registered with repos under the scanned folders plus .claude/worktrees, .orc,
.supacode and ~/.supacode, and orphaned worktree folders. Only clean worktrees
whose commits all exist on a remote and are older than the threshold are
preselected. Removal uses git worktree remove without --force, then prune.
Adds ~/Developer and ~/Developers to the default purge roots.

Size-budget-override: feature spans CLI and app; the CLI half is the core logic and tests
Both categories walked the whole home folder separately, so Smart Scan
paid for the same traversal twice. On a developer Mac with about 60k
folders under home that walk takes close to three minutes. One pass now
collects both kinds and the second category reuses it once, within two
minutes; a cancelled walk is not reused.
# Conflicts:
#	PureMac/Services/CleaningEngine.swift
#	PureMac/Views/MainWindow.swift
A folder whose .git file points at missing metadata is not proof the
work is disposable: moving or renaming the main repository leaves every
linked worktree in that state, and git worktree repair brings them back.
Removing them meant a plain recursive delete of a source tree outside
git's control. Orphans are now skipped by the scan and refused by the
remover; everything else still goes through git worktree remove.
# Conflicts:
#	PureMac/pl.lproj/Localizable.strings
#	PureMac/ru.lproj/Localizable.strings
Carries over the tap description, the alphabetized zap list and the
wrapped lsregister path from momenbasel/homebrew-tap@da86a57, so both
copies pass brew style.
# Conflicts:
#	PureMac/ar.lproj/Localizable.strings
#	PureMac/de.lproj/Localizable.strings
#	PureMac/en.lproj/Localizable.strings
#	PureMac/es.lproj/Localizable.strings
#	PureMac/fr.lproj/Localizable.strings
#	PureMac/it.lproj/Localizable.strings
#	PureMac/ja.lproj/Localizable.strings
#	PureMac/pl.lproj/Localizable.strings
#	PureMac/pt-BR.lproj/Localizable.strings
#	PureMac/ru.lproj/Localizable.strings
#	PureMac/uk.lproj/Localizable.strings
#	PureMac/zh-Hans.lproj/Localizable.strings
#	PureMac/zh-Hant.lproj/Localizable.strings
@momenbasel
momenbasel merged commit 9028c74 into main Nov 19, 2026
7 checks passed
momenbasel added a commit that referenced this pull request Nov 19, 2026
Reason: the categories and button added in #209 showed English in up to 14 languages, and the new collapsible sidebar headers gave VoiceOver no expanded state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants