How can I completly and permanently exclude specific files (with names like readme or general file formats like .php) from Spotlight search?
One practical example:
I have important notes saved as TXT files which I need to find in Spotlight. However, I also get an overwhelming amount of
faq.txt or even
.php files shown which makes no sense at all that they are showing up.
They are file related to plugins and programs and in differnet locations.
It is especially bad when you search for a phrase or sentence that is within a text file. Then literally everything pops up.
All of the files need to stay where they are but some should be excluded. If it is not possible what are possible ways to do it most efficiently.
Note: I am very well aware of the Spotlight settings in System Preferences, but it's not about locations or files in general. And I'm also not looking for moving files in a folder and exclude this folder or use the generally proposed