Skip to content
Projekte

Über uns

Instant filename search for macOS — finds every file and folder across all volumes as you type.

Web- und App-Entwicklung

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+2
in 7 days
Verlauf wird gesammelt
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

EverythingMac

Search files and folders across your disks as you type. Normal searches match consecutive text: expo finds export.swift. Optional fuzzy matching finds abbreviated names and tolerates a single letter typo in longer terms. It's a macOS clone of Everything, the search tool I lived in back on Windows.

EverythingMac searching for mac on indexed volumes

Download the latest release (macOS 14+), or build it from source.

The folder is called everything-rust for historical reasons. There's no Rust in it. The whole app is Swift (SwiftUI and AppKit).

This build isn't notarized by Apple, so on first open macOS will block it. Either run xattr -dr com.apple.quarantine /Applications/EverythingMac.app, or right-click the app and choose Open. See the release notes for details.

Why I built it

I switched to Mac from Windows, and the one tool I missed right away was Everything by voidtools. Hit a shortcut, type a few letters, and it lists every matching file and folder on the whole disk before you finish typing. It doesn't make you wait while it builds an index, and it doesn't reshuffle the results to show you what it thinks you meant.

Spotlight is supposed to cover this. It doesn't, at least not for me. The part that broke it was folder search: I'd look for a folder I knew was there and Spotlight wouldn't list all the ones that matched. It buries results and second-guesses what I actually typed. I'm a programmer. Finding a file by name is the most basic thing a computer does, and I don't want to fight it to do that.

So I wrote my own. It reads every filename on the machine into memory and searches that as you type. Open it, type, it's there. Want to open the file? Right-click and pick whatever app you want.

What it does

  • Contiguous filename text matching by default, with optional fuzzy matching in Filters. Quotes, wildcards, and Match Whole Word retain their matching semantics.
  • Searches local volumes and selected network shares, updating on each keystroke.
  • Indexes the whole disk, files and folders, and keeps the index current through FSEvents.
  • Results table with sortable Name, Path, Size, Kind, and Date Modified, persisted column layouts, exact match counts, and highlighted matches. Optional Indexed Size and Files columns summarize indexed descendants.
  • Shows the real file-type icon and a readable kind for each row.
  • Multi-file Open, Open With, Reveal in Finder, clipboard, copy/move, rename and batch rename, Finder Get Info, and Move to Trash. Undo checks that its original targets have not changed.
  • Advanced queries, multiple file-type filters with Over/Under size limits, saved searches, reusable macros, history, and independent search tabs and windows restored across launches.
  • Quick Look with Space, an optional preview pane, and a thumbnail grid that loads visible results.
  • A menu bar item and configurable global shortcut in Settings. Indexing continues with the search windows closed.
  • An optional indexed folder sidebar and recursive totals, computed from the published index rather than filesystem reads for each row.
  • Tools for portable file catalogs, scoped exports, verified duplicates, folder comparison, content search, and index activity.
  • A read-only MCP server for agents to search the saved index and inspect its status, alongside the command-line tool.
  • Handles millions of files with parallel search, shared filename scoring, and reuse of prior candidates as you keep typing.
  • First-launch onboarding waits for Full Disk Access before scanning, with an option to continue without it.
  • Opt-in network-volume indexing in Settings > Volumes. Selected shares are scanned in the background, retain cached results while offline, and reconnect at launch and after sleep using credentials already saved in the keychain.
  • Searches immutable snapshots on separate workers. Directory reconciliation, full rebuilds, network-tree merges, and cache saves keep the last published files searchable; new changes appear after publication. Superseded queries are cancelled.

Fuzzy search

Enable Filters > Fuzzy Matching to type fnlrpt and find a name such as FinalReport.pdf, or repotr to find report.pdf. Plain terms use subsequence matching; ASCII terms of at least five characters can tolerate one wrong, extra, missing, or swapped letter at a word prefix. The first letter must agree and digits are never corrected. Unicode terms support subsequence matching. Multiple terms are combined with AND.

Use "report" for a literal substring, rep*.pdf for an anchored wildcard, or leave Fuzzy Matching off for normal consecutive-text matching. Match Whole Word uses exact bounded terms. Select View > Sort By > Relevance for best matches first, or a table column for ordinary sorting. New searches default to Name ordering. Upgrading to 0.5.1 switches ordinary restored tabs to consecutive-text matching once; saved searches and history keep their recorded options. Later fuzzy choices persist.

The matcher adapts the MIT-licensed scoring used by fsearch, as integrated by FinderSearch. EverythingMac stays entirely Swift and has no Rust helper dependency. See third-party notices.

To verify the non-blocking search path against the actual app indexing actor:

swift test -c release
./scripts/test-search-isolation.sh
./scripts/test-app-safety.sh

The native app checks exercise selection and context-menu targets through live refreshes, overlapping rebuild cancellation, file operations and guarded undo, quoted TSV export, and preservation of known network files after incomplete scans. They use temporary fixtures and inspect launch targets without opening owner files.

The regressions in StartupSafetyTests.swift and TableSafety.swift exercise watcher replacement/deallocation, corrupt cache counts, concurrent mount reads, and cached file-size rendering. Run the complete engine suite and native table checks with Address Sanitizer using:

./scripts/test-startup-safety.sh

The storage path in FileStore.swift and IndexActor.swift shares an immutable, memory-mapped base between searches and the indexing writer. New records and deletions use a small overlay, avoiding copies of the complete base during live updates. Background compaction folds that overlay into a new mapping while existing searches retain their original snapshot and record IDs.

UniqueNameIndex.swift prepares the filename dictionary in the background. Searches keep using the parallel scan until it is ready, then reuse the base dictionary across live updates. The derived dictionary and any snapshots still in use require additional memory.

Requirements

  • macOS 14 (Sonoma) or newer
  • Xcode 26 or newer (Swift 6.2+ and Icon Composer support)
  • XcodeGen 2.45.1 or newer: brew install xcodegen

Build and run

git clone https://github.com/alesloa/everything-mac.git
cd everything-mac
./scripts/build-dev.sh

The script generates the Xcode project from App/project.yml, builds a Release binary, bundles the signed MCP server, and copies the app into /Applications. The MCP client command is /Applications/EverythingMac.app/Contents/MacOS/everything-mcp; see MCP.md. Build Release, not Debug. The search loop runs about 100x slower without optimization.

To build a universal DMG in the same Apple Development signed, non-notarized form as the existing GitHub releases:

./scripts/build-dmg.sh --development-signed

The app and MCP helper include Apple Silicon and Intel slices. The versioned DMG and SHA-256 file are written to .build/releases/<version>/. The default ./scripts/build-dmg.sh workflow requires DEVELOPER_ID and the notary keychain profile and submits the DMG for notarization.

Signing it as yourself

App/project.yml has my Apple Development identity hardcoded so Full Disk Access doesn't get revoked every time I rebuild on my own machine. To build it on yours, do one of these:

  • Open App/EverythingMac.xcodeproj in Xcode, select the EverythingMac target, go to Signing & Capabilities, turn on "Automatically manage signing," and pick your team.
  • Or edit CODE_SIGN_IDENTITY and DEVELOPMENT_TEAM in App/project.yml to your own values and re-run ./scripts/build-dev.sh.

Full Disk Access

The app can only index everything if you give it Full Disk Access:

System Settings > Privacy & Security > Full Disk Access > turn on EverythingMac.

The first launch scans the whole disk and writes the index to a cache, so it takes a few minutes depending on how many files you have. After that it starts instantly and picks up file changes as they happen.

Network volumes

In Settings > Volumes, turn off any local drive under Drives to index, including the startup drive, then click Apply & Re-index. Turning off the startup drive excludes its files while keeping enabled external drives and selected network shares searchable. These choices persist across launches.

In Settings > Volumes, choose Add Network Volume…, select a mounted share or a folder on it, then click Apply & Re-index. The whole share is indexed separately from local drives. Automatic reconnection requires credentials already saved by Finder.

Selected shares refresh every five minutes by default, after reconnecting, or when you rebuild the index. Settings > Volumes offers per-share refresh intervals, pause, manual refresh, and cancellation. Cached results remain searchable during refresh and while a share is offline; opening a result requires the share to be reachable.

Using it

Launch it and start typing. Matches show up right away. Click a column header to sort. Double-click a row to open it, or right-click for Open With, Reveal in Finder, Copy Path, Move to Trash, and the rest.

For agents, build and install the stdio MCP server with ./scripts/install-mcp.sh, then configure an MCP client to launch everything-mcp. See MCP.md for client configuration, tool arguments, result fields, and saved-index behavior.

Queries and saved searches

Use Search > Advanced Search for the query builder, or enter query operators directly. Examples from the implemented query parser:

ext:pdf size:>1mb
folder: report
(ext:swift | ext:md) !path:node_modules
regex:"report[0-9]+"

Quoted words use literal matching. Boolean groups, metadata predicates, and search options share the same behavior in native search, catalogs, and the command-line tool where metadata is available. Invalid queries display their actual validation error. Save the current search from Bookmarks, and use History to revisit searches. Each tab and window retains its own query, options, folder scope, and sort order.

Open Filters beside the search field to select multiple file types and optional Over and Under size limits, then click Apply. Everything checks or clears the type group; each type stays independently selectable, and Files includes every file type. Selected types form a union; size limits narrow that union to files strictly above or below the entered sizes. Choose MB or GB for decimal units, and use Clear All, then Apply, to remove filters while keeping the search text. Filters are retained in saved searches and tabs.

Use the sidebar button beside the search field, View > Folder Sidebar, or Control-Command-S to expand or collapse folders. Click a folder to search it, Shift-click to select a range, or Command-click to add or remove individual folders. Selected folders form a union; overlapping selections never duplicate results. To search everywhere except /Volumes, choose All Indexed Folders, expand /, then right-click Volumes and choose Exclude from This Search. These exclusions apply to the current search; indexing settings remain independent.

Collapsing the sidebar keeps your selected folders and exclusions, and the scope remains visible above the results. Remove individual restrictions there, or choose All Indexed Folders to clear the entire location restriction. Tabs, saved searches, and restored sessions remember the complete selection and whether the sidebar is expanded or collapsed. Full-query exports, content search, and duplicate searches use the same location restrictions.

Previews, totals, and file tools

Select files and press Space for Quick Look. View > Preview, Thumbnails, Folder Sidebar, and Indexed Folder Totals enable the corresponding views. Folder totals describe indexed descendants, so exclusions and unavailable metadata affect them. Preview and thumbnail reads skip network files by default; the network-read option is explicit.

File > Export Results exports selected rows, visible rows, or every match from the current immutable snapshot. The native result table scrolls through the full match count and decodes rows on demand. Tools > File Catalogs imports portable lists and keeps unavailable catalog metadata absent. Windows catalog paths require an explicit mapping before native file actions. See FILE_CATALOGS.md.

Tools > Find Duplicates verifies file contents and compares folder trees. It does not delete files automatically. Tools > Search File Contents searches supported text and PDF files on demand, with bounded workers, cancellation, and file-size limits. Network content reads require opt-in; cloud and dataless files are skipped. Tools > Index Activity shows observed indexing events and status without blocking filename searches.

Command line

Build the everything SwiftPM executable for searches against the existing saved index. It never scans the disk or writes the cache:

swift build -c release --product everything
.build/release/everything --help

See COMMAND_LINE.md for query, sort, scope, export, and pipeline options. Building does not install the executable in your PATH.

How it works

  • FileStore.swift keeps UTF-8 names and metadata in columns: a mapped base plus appended records and sparse deletion flags. IndexCache.swift streams those columns to an atomically replaced binary cache and still reads the previous cache format.
  • UniqueNameIndex.swift groups byte-identical filenames and uses character bitmaps to reject groups of 64 names. The matcher scores each surviving name once, then expands it back to live records with their own paths and metadata.
  • SearchIndex.swift reuses the complete previous match set when QueryNarrowing.swift proves the new query can only narrow it. It rescans when editing or changing options could add matches, and always recomputes scores and sorting.
  • IndexActor.swift applies FSEvents and publishes coherent snapshots. Searches, filename preparation, cache writes, and compaction run separately from the filesystem writer.

License

MIT

Ähnliche Projekte entdecken

Wird geladen…