Search The Text Of The Files In A Folder
Press Space on a folder, switch the sidebar’s filter to Contents and type
Press Space on a folder, ⌥⌘F, switch to Contents and type: spacebar lists every file below whose text matches, with the first matching line.
How To Search
- SpaceOn a folder in Finder.
- ⌥⌘FOr click the sidebar’s filter.
- Names | ContentsSwitch to Contents; type two or more characters.
- ↑ ↓Open a result; ⌘F lands on the match.
Results show folder, match count and first line. Text only in Markdown markup, like a link’s address, is in Raw.
Which Files It Searches
- SearchedMarkdown, code, JSON, CSV and text, in every folder below.
- Skipped
node_modules,.build,Pods, binaries, undownloaded iCloud files.
Hidden files only when shown. Plain text, any case, no patterns.
Limits
- Read per file
- 2 MB
- Per search
- 64 MB
- Time per search
- 2 s
- Files listed
- 500
A search cut short says so: “Found in 12 files · 300 of 900 searched”.
Names Search Covers Every Folder
On Names, letters match in order, so rdme finds README.md in any folder below.
Drag A Result Out
In the Space window, drag a result into Finder, Mail or an editor to hand it the file.
Folders Open Without The Helper
Space on a folder opens spacebar inside Quick Look, so Contents search needs nothing else. The optional Space helper, which needs Accessibility, adds PDFs, photos and CSV. More: Quick Look a whole folder, Quick Look replacement, compare.
Install It
Or paste this in Terminal
curl -fsSL https://spacebar.patebryant.com/install.sh | sh
The script downloads the latest notarized release from GitHub, checks its SHA-256 and installs to ~/Applications, no sudo. Read the script.