My most common search pattern is to search for files based on their name. When I try this in Spotlight (cmd-space
) it rarely works. Is there a way to make Spotlight search for file names, and to place those results on top?
MacOS – use Spotlight to search for files by name
macosspotlight
Related Question
- How to search multiple spotlight sources / drives simultaneously
- MacOS – How to blacklist filetypes from Spotlight search results
- Using a keyword that contains a space in a Spotlight search
- MacOS – Spotlight Search on Yosemite indexes and shows iTunesLibrary.h and other files with “.h” extension
- Spotlight Search by Full Path
- Hide Everything For Cmd+Space Spotlight Search but Applications
Best Answer
You can use this in your search to search for files with 'query' in their name:
name:query
For more info about Spotlight commands, you can take a look at an excerpt of Mac OS X: The Missing Manual.