You don’t need any plugins to do this. Obsidian has a built-in query feature that can search blocks of text for things like multiple tags. For example:
```query
block:(#sport #running)
```
This says: “Show me every paragraph of text in my vault that has both the #sport and the #running tags in it.”
Thanks, @Craig. I didn’t know about embedding queries. It almost solves it for me but it would be nice if there were an option to expand search results. I see there is a feature request for it.
I can suggest a solution with dataview. But that implies a different way to write your “metadata”.
An example with bullet point lists.
# NoteA
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- #sport #running I was running for 20 minutes
- #sport #gymn chess-press 10x
Praesent sit amet magna vel lacus condimentum finibus id ac quam.
# NoteB
Interdum et malesuada fames ac ante ipsum primis in faucibus.
- #sport #running I was running for 30 minutes
Sed erat nulla, scelerisque at consectetur vel, lobortis quis mauris.
- #running A long run
Now the query to collect all strings with the tag #running:
TABLE WITHOUT ID
file.link AS "Day",
regexreplace(Lists.text, "(#\S+)+", "") AS "Runing"
FROM #running
FLATTEN file.lists AS Lists
WHERE contains(Lists.tags, "#running")
Or a query to collect all strings with the tag #sport and identify the type of sport:
TABLE WITHOUT ID
file.link AS "Day",
filter(Lists.tags, (t) => t != "#sport") AS "Sport",
regexreplace(Lists.text, "(#\S+)+", "") AS "Exercise"
FROM #sport
FLATTEN file.lists AS Lists
WHERE contains(Lists.tags, "#sport")
I have asked many times for to simply tag a block and have it appear on a separate page. If you have a high level javescript it is easy and other can’t explain it without you learning javascript. I would rather not use something I do not know how to fix, or change. So the solution is below.
I use the dataview plugin and inline tags “tag:: the value you want to pull” to record quotes and ideas in a table.
I also use Css, to keep information at top of cells.
Creating your custom theme CSS file in the themes directory YOUR_VAULT/.obsidian/themes/YOUR_CUSTOM_THEME.css
Enabling it in the theme dropdown under Settings => Appearance => Themes
You can find this configuration in Settings => Appearance.
open the folder using theme and it will show you it in your computer systme.
Here I’m showing two different variants to add display fields in the list, and I’ve added a little bit of custom css to make it appear more like normal text. I prefer the first variant, which then completely hides in the reading view as normal text, but it still separates the text into the desc and time fields.
My custom CSS to make inline fields look more normal
I’m mainly using Minimal in a dark theme, but I tested it in the default theme as well, and it looks similar there.
body .dataview .inline-field-standalone-value,
body .dataview .inline-field-value {
background: var(--background-primary);
font-size: var(--font-adaptive-normal);
color: var(--text-normal);
}