Easily search filename for multiple (non-consecutive) words

The only way I have found to search for three words in filenames is to repeat where I want to search (file:) before each word.

file: Jonnie file: sweater file: Christmas.

It would be great if Obsidian would have a way of saying: if an operator is used at the beginning, then assume it applies to the entire search until it sees a different operator. Or maybe using a single quote to indicate the same thing, as in:

file: `jonnie sweater gift

Vaults are getting larger, and many of us use descriptors in the names to easily find them in the future.

Of course if there is a trick I don’t know about, please share.


Also, I noticed this in the help file and it cold lead to some confusion:

This makes it sound like the default search looks to paths and filenames rather than the entire file:

A community reference for Obsidian search documents a shorter form: file:(jonnie sweater christmas). The file: operator applies the parenthesized subquery to the filename, and space-separated words inside it must all match - that AND behavior is how the official documentation describes search terms. So this finds filenames containing all three words without repeating file: each time. If you want to see how Obsidian parses it, ‘Explain search term’ in the search bar breaks the query down.

Rei’s answer is correct. Here is the Search documentation: Search - Obsidian Help.

Perfect. Thanks.

Yeah, I quoted that help file above.

As I suggested, on the one hand it says that by default searches are done on paths and filenames, but that isn’t quite right, is it.

With no operator, searching for jonnie sweater gift, matches all three words in “text”, which seems to mean in the entire file as well as the path and filename.

So it is easy to confuse the matter and think: Oh, well, if the search bar searches filenames by default, then surely it will be searching for those three words in the filenames.

Sorry, because I wasn’t addressing the aside about the docs I forgot that you’d obviously seen them.

The sentences directly before and after that callout explicitly say that Search searches within files, so I wouldn’t expect much confusion about that. But you can file an issue on the documentation’s GitHub if you like (linked near the bottom of its homepage). Actually the transition from “Obsidian only searches the contents of notes and canvases” to that callout feels contradictory at first glance. That section could probably use some revision.