brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: kind:pdf in Spotlight shows only PDFs

Spotlight
~/tips/tip-macos-spotlight-kind-keyword

kind:pdf invoice

Limits a Spotlight search to one type of item, such as PDFs or images.

Type a word in Spotlight and you get everything: apps, mail, websites, files with that word buried on page forty. When I know what sort of thing I want, I’d rather tell Spotlight up front.

Start the search with kind: and the type of item. Apple’s guide lists words such as pdf, images, folder, email, presentation and app, most with a plural version too. Then type your search term after it.

kind:pdf invoice

That gives only PDFs that match “invoice”. Apple’s own example is kind:images New York City for photos of the city.

There are more keywords like this. Apple names author, title, name, tag, from, to and contains, among others. You type the keyword, a colon and the term, for example author:John or title:budget. Newer versions of Spotlight also have a quicker route: type / followed by the type, like /PDF, and press Return.

One caveat: these keywords only work on what Spotlight has indexed. A folder you excluded from Spotlight stays invisible, whatever keyword you use. My advice is to learn two of them, kind: and name:, because those already cut most result lists down to something you can scan.

Further reading: Narrow your search results in Spotlight on Mac

More Spotlight tips mdimport -i ~/Documents/Invoices Command-2 Files double-click backup-2025.zip unpacks it next to the zip Tab show the Quick Actions for that result "trip to Paris" All Spotlight tips (14) All topics

Link