Search operator for YAML similar to Line / Section

Use case or problem

Add a native search option similar to “line” and “section” but for “YAML” to just search YAML frontmatter. So like yaml:(person) for example.

Proposed solution

Add a native search option similar to “line” and “section” but for “YAML” to just search YAML frontmatter. So like yaml:(person) for example.

Current workaround (optional)

Right now I just search the entire file contents for my YAML which works but also gets false positives from other stuff in the file / page.

15 Likes

relates to Allow links in YAML front matter; Notion-like databases from metadata; links as first-class citizens

1 Like

specifically, this might be a cleaner alternative

1 Like

I think though these are two different use cases / FR aren’t they? I want both. Links in frontmatter to “work” and also a search operator to just do native search stuff in front matter. Right?

I would second this. The ability to limit search to YAML would be useful.