Hi Leman but name:name won't fine me files with name say "filemame.jpg" anyway to find this file in finder search?
The file name you posted doesn't contain the substring "name". You posted
filemame.jpg. If that's a typo, it's an unfortunate one. If that's the actual filename, then it doesn't contain "name" so it's correct when it's not found.
To find all the files whose name contains the substring "foo", you should open a Find window and choose "contains" from the popup that appears in the "Name" selection criterion. That popup sits between the word "Name" (in its popup) and the input box where you enter the text to search for. The default is "matches", which is not the same as "contains".
If you choose "matches", then the search only shows the substring "name" if it:
- begins the filename.
- begins a word[1] in the filename (e.g. "some_name" or "some name")
- has "Name" in CamelCase (e.g. "someName")
There may be other criteria for "matches". The above are just what I discerned after looking at the difference in results between "contains" and "matches" on my disk.
The other options in the popup are "begins with", "ends with", and "is".
EDIT
[1] It's unclear exactly what is considered a "word". Punctuation and space definitely count as delimiters, i.e. they will make the text into separate words.