In earlier versions of OSX, when you search in a Finder window, it gave you the choice of searching by contents or file name. In Lion this choice seems to have disappeared, I can only search by content now. Is there any way to search by name in Lion?
If you've already run the search and want to alter the search to only look for files with your search term in the filename, you can click the '+' button just beneath the search box and change the search type from there. See screenshots below:
Mike Scott has nice suggestions from the comments that are worth incorporating here to use the name: selector in spotlight. You can prefix your search with This results in a window which you can select 'Filename' or 'Everything' from if you click the button labelled 'name' in the search box as shown below: |
|||||||||||
|
|
Search using the name: selector
I've also become a big fan of the Found app. It's currently free on the app store and lightning fast (seems faster than LaunchBar to me - and that's saying a lot as it's a speed demon). |
||||
|
|
|
Ross is correct that the option to switch between searching filenames or contents disappears once you perform your search -- if you don't choose filenames to search filenames from the drop-down when you first type in the search term. Once you perform the search without having clicked on that drop-down, the drop-down will not appear even if you click again in the search bar. You have to type another character in the search bar, then delete it, and THEN the drop down appears. This is pretty stupid on Apple's part. They took something that was simple, very clear and self-explanatory, and made it hard to find, a bit difficult, less useful and inconsistent. If you want to search contents first and then switch to filenames, it's not as easy as the simple click of a visible button. No logical reason for this. I hope they return the original, better-designed feature. |
|||||
|
|
⌃⌘F (File > Find by Name…) also opens a Spotlight window that is set to search by name by default. |
|||||||
|
|
It does not disappear - just enter your query into the searchfield and hit enter - then click into it again and find the possibility to switch right there. |
|||
|
|




