Create note that gathers sections from other notes

What I’m trying to do

Create a main note called “Research” where all information will be displayed coming from other notes based on, maybe a tag?
All notes I write that I want to display in “Research”, will have a tag, maybe?

For context:
Let’s say I’m writing a new note about music theory and at one point I’m watching a YouTube video and the person mentions a certain book.
Now on my “Music Theory.md” note, I will add “something” (I’m thinking that maybe a tag, but if you have a different solution, feel free to share) and so when I go to “Research.md” it will show me that note, but also that specific section in my “Music Theory” note (where the tag was added). So when I have free time I can go to “Research” and go over all the stuff I want to research. Almost like a checklist that displays sections from other notes. Once I research a particular section, I can go and remove that tag (or make whatever change I need to make) to make that section be removed from “Research”

Things I have tried

One of the things I will be reading next is how Dataview works, so until I’m comfortable with it, I asked ChatGPT to help me with this task. I was able to get it to share some instructions and provided the following:

image

When I disable Source Mode, I get this:

Here’s the structure, but even with the #research tag, the “Research” note doesn’t display any information

Any tips?

EDIT: Basically what I’m trying to achieve is something similar to this, but instead of using the Search, I would like to have a note that gathers all that info:

image

Again, I’m using a tag as an example, but if there’s another way of achieving this, please feel free to share it.

These help at all?

# Q1

```dataview 
TABLE WITHOUT ID
file.link as "File"
FROM "Obsidian Tests" AND #research
sort file.name asc
```

# Q2

```dataview 
TABLE WITHOUT ID
file.link as "File",
Research
FROM "Obsidian Tests"
sort file.name asc
```

The second query uses inline fields.

1 Like

And @holroy has a neat idea shared on this link.

Thank you for sharing those.

I can see that it creates the links to the notes, but my goal was to have it “target” the section where the tag is to make it easier to go straight to that section in the note, which can achieved using the Search field, for example.

In a short note maybe that’s not problematic, like this:

image

but in a note with lots and lot of paragraphs and 2 or more hashtags to research multiple articles/videos, etc, it becomes less effective (using the method you shared).

In ChatGPT, I was shown this (maybe this helps?):

And it ends with this:

“By using this approach, the “Research” note will automatically gather and display links to sections in your other notes where you’ve tagged information with #research. You can further customize the Dataview query and the structure of your notes based on your specific needs.”

Unfortunately, that whole reply is still very confusing to me.
Words like “front matter” are still foreign to me and instead of helping me understand what they are saying, it confused me even more…

As I mentioned, I’m still in the process of starting to read about Data View and whatever comes along with it (I’m still just gathering a few links so I can read the articles/watch the videos soon).

I didn’t see it mentioned, but have you tried an embedded search/query yet? e.g.

```query
tag:#Research
```

You can also click on the right to expand the results and “Show more context”:


There are two plugins, Query Control (beta – installable via BRAT) and Better Search Views that extend the built-in functionality.

With Better Search Views installed:

3 Likes

This is an awesome solution and super simple to implement!
Really appreciate you sharing it :raised_hands:

And unlike using the dataview option which opens the note separately and doesn’t allow going back to the original note (the one that shows the list of all files with the hashtag), this approach allows me to do that.

I’m now reading about Dataview and I can see how using it will be great for my notes. Just need to find a workflow that works for me.

Again, thank you and @anon23099027 for your feedback!

1 Like

Yeah, embedded queries are great and they use the same search terms as in the sidebar Search tab, so you can be as simple or complicated with the search as the situation requires.

1 Like

Exactly! Always learning new things about Obsidian and that makes such a big difference.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.