Auto-detect noisy app directories at startup#29
Merged
CalebisGross merged 1 commit intomainfrom Mar 1, 2026
Merged
Conversation
Scans ~/.config/ and ~/.local/share/ (Linux) or ~/Library/ (macOS) for known noisy applications (browsers, editors, desktop environments, communication apps, etc.) and adds them as watcher exclusions before the filesystem watcher starts. Detected patterns are deduped against existing config exclusions so they don't stack. Runs every startup (fast — just os.Stat checks against a registry of ~30 known apps). Closes #27 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
~/.config/and~/.local/share/(Linux) or~/Library/(macOS) for known noisy appsExample output on this Linux machine
How it works
DetectNoisyApps()runs at startup inmain.gobeforeNewFilesystemWatcher()is called. It does a fastos.Stat()check for each known app directory — no filesystem walking, no I/O beyond stat calls. Detected patterns are merged with config exclusions, then passed to the watcher constructor.Files
internal/watcher/filesystem/autodetect.go— registry + detection logicinternal/watcher/filesystem/autodetect_test.go— 3 tests (pattern format, real detection, dedup)cmd/mnemonic/main.go— hook detection into watcher startupTest plan
make buildpassesmake check(fmt + vet) passesmake test— all tests pass, including 3 new autodetect tests~/Library/Application Support/and~/Library/Caches/)Related
🤖 Generated with Claude Code