I have looked at the Templater and Dataview plugins without success.
What I’m trying to do
I have a long list of files named “Meeting - xyz - ” (for instance: [[Meeting - All-Hands - 2022-04-02]]). All these files have a section “## Summary” at the bottom of the file.
I want to have a “template - meeting” file in Templater that would automatically embed the “## Summary” section from the most recent files whose name starts with the same “Meeting - xyz”.
As an example, if I have files “Meeting - All-Hands - 2022-01-23” and “Meeting - All-Hands - 2022-02-25”, applying the “template - meeting” on the file “Meeting - All-Hands - 2022-03-30” should automatically add to the “Meeting - All-Hands - 2022-03-30” the following text:
![[Meeting - All-Hands - 2022-02-25#Summary]]
This may work, even though it is not possible to embed text with dataview queries (maybe dataviewjs?) The best solution I could’ve found is linking just the header and hovering over while pressing ctrl so it’ll show a preview. Also, be wary of uppercase and lower case. I tried putting the code as you have typed it, but if there’s some difference it won’t work since queries are case sensitive
Also if you want to be able to see more of your meeting notes, change the LIMIT factor
TABLE WITHOUT ID link( file.name + "# Summary", string(file.cday) ) AS summary
WHERE startswith(file.name, "Meeting")
SORT c.day DESC