README.md

FreeLaunch #

A very small app launcher for macOS that replaces Spotlight's ⌘Space. It indexes the apps and utilities in the usual folders, pops up a search field, ranks the best match as you type, and launches it on Enter. Nothing else.

Plain Swift/AppKit, no dependencies, no Xcode project: just make.

Build and run #

make            # builds build/FreeLaunch.app
make install    # copies it to ~/Applications/FreeLaunch.app
make run        # (re)starts it
make login-item # starts it at login (make no-login-item undoes that)
make stop       # quits it

FreeLaunch has no Dock icon and no menu bar item; it just sits in the background waiting for ⌘Space.

Hand it ⌘Space #

Spotlight owns ⌘Space by default and wins over everything else, so turn its shortcut off once:

System Settings → Keyboard → Keyboard Shortcuts… → Spotlight → untick "Show Spotlight search".

FreeLaunch warns you at startup while Spotlight still has the shortcut. No Accessibility permission is needed: it registers the hot key through the regular Carbon hot-key API.

Using it #

  • ⌘Space opens the panel (⌘Space again, Esc, or clicking elsewhere closes it).
  • Type; the best match is highlighted at the top of up to eight results.
  • Enter launches the highlighted app; ↑/↓ (or ⌃P/⌃N) move the highlight; clicking a result launches it.
  • With nothing typed, the panel lists your most-launched apps, so ⌘Space Enter re-opens the last favourite.
  • open -a FreeLaunch from a terminal also opens the panel.

Matching is case-insensitive and ranks exact name, then prefix, word prefix (term → Terminal), multi-word prefix (sys set → System Settings), initials (ss → System Settings), substring, and finally in-order character subsequence. Apps you launch often get a bonus, so your habits win ties.

What gets indexed #

Installed apps #

.app bundles in /Applications, /System/Applications, /System/Library/CoreServices/Applications, and ~/Applications (two folder levels deep, so Utilities and vendor folders are covered), plus Finder. The index is rebuilt in the background whenever the panel opens more than a minute after the last scan, so newly installed apps show up on their own.

Mollusc apps in development #

Any directory under ~/Code (up to four levels down, skipping node_modules, dist, out, build and examples) that holds a mollusc.json is listed under its manifest name with its icon and a dimmed dev · ~/Code/… hint, so it can be launched like an installed app. Launching runs mollusc dev <dir> through your login shell (so it finds the same mollusc your terminal does) and writes its output to ~/Library/Logs/FreeLaunch/<parent>-<dir>.log. Launching an app that is already running just brings it forward, courtesy of mollusc's single-instance lock.

Launch counts live in ~/Library/Application Support/FreeLaunch/usage.json.

Poking at the ranking #

build/FreeLaunch.app/Contents/MacOS/FreeLaunch --list          # every indexed app
build/FreeLaunch.app/Contents/MacOS/FreeLaunch --query "sys"   # top ten matches with scores