Include title of note when embedding section

Things I have tried

I’ve tried to find an answer in the forum but haven’t been lucky enough :slight_smile:

What I’m trying to do

I would like to embed different notes into a note (to solve as an overview page) but the notes that I want to embed are very similar, .e.g. notes on work items that contain some general information on the item followed by to-dos and notes, etc.

If I do

  • ![[work item 1#todos]]
  • ![[work item 2#todos]]

I cannot identify on the first glance to which item those open action belong, as the result would be the following:

Tasks

#todo

  • Task 1
  • Task 2
  • Task 3

Tasks

#todo

  • Task 1
  • Task 2
  • Task 3

Is it possible to change that and include the title of the linked / embedded note? Or would I have to do smth like

[[work item 1]]

  • ![[work item 1#todos]]

[[work item 2]]

  • ![[work item 2#todos]]
1 Like

Since you’re working with Todo lists, you can use the community plugin Dataview and it will do what you’re trying to do. The other benefit is that you potentially only need to write it once to capture tasks across multiple notes.

This is the query I use to query uncompleted tasks in notes tagged with #status/active.

```dataview
task
from #status/active 
where !completed

I have the same use case, except it’s not only for tasks but for notes too.

It would be amazing to have the title of the embedded note!

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