Bases: Embed all returned notes in display order

Use case or problem

I often use embedding of multiple notes to create a larger single note, perhaps for export to PDF etc. Currently I manually enter all the embedded notes, which can be tedious:

![[Note 1]]
![[Note 2]]
...
![[Note 99]]

Proposed solution

If I could enter a base code block which would return all the notes using filters, sort them by some parameter, and then embed them all in place, that would be great. Something like this:

``` base
filters:
  and:
    - file.hasTag("ResumeCV")
views:
  - type: embed
    name: EmbedView
    sort:
      - property: periodicStart
        direction: ASC

where type: embed made the Base embed all the filtered notes in the sorted order, instead of displaying in a table.

I realise this could result in many notes being embedded at once, which I guess would affect performance. Perhaps some trigger or warning could be included until the user was sure they had the filter correct.

1 Like