I don't think the built-in search has this capability, but you can try this dataview query:
LIST
WHERE !parent
Unofficial Lemmy community for https://obsidian.md/
I don't think the built-in search has this capability, but you can try this dataview query:
LIST
WHERE !parent
Works like a charm! I didn't know that I could query not just from tags but from any YAML key. Thank you!
If you're using regex I'm assuming you know of utilities like Regex 101 to check your syntax.
With JS-styled regex the entire statement is enclosed in slashes. /parent:: $/
should have the desired effect here.
I second DataView for these kinds of tasks as the plugin revolves around YAML frontmatter. I have a utility note called "notes with cleanable metadata" that has a bunch of these DataView queries that update in real time.
Good luck!
/parent:: $/
Works perfectly! I thought I could start the regex in the middle of my text query. In hindsight, that of course makes no sense. Thank you!