A search operator to search only in file contents, excluding the YAML header

Once you are done reading, please delete the above notes

Use case or problem

Trying to search a note’s body, while ignoring the YAML header
For example, I was trying to search for the word alias in notes’ body, but it matches notes that the contain the word alias as well as notes that contain the property “aliases”

Proposed solution

Creating a search operator that searches the note’s body while ignoring the YAML header
For example, create this search operator: «body:»
This way only the body of the note is searched, and the YAML header is skipped

Current workaround (optional)

None

Related feature requests (optional)

A search operator to search only in the YAML header, the opposite of the above search operator that I proposed.
For example, a «header:» search operator

4 Likes

My kinda workaround for this is to make a note name what I want to search, go into Backlinks, and check Unlinked mentions… But it doesn’t allow things like RegEx or any of Obsidian’s search operators.