obsidian-templates/include.md

7 lines
252 B
Markdown
Raw Normal View History

2023-04-28 11:28:14 +00:00
<%*
// Choose file in vault to include its content in the current note
const files = this.app.vault.getMarkdownFiles()
const file = await tp.system.suggester((files) => files.basename, files)
tR += await tp.file.include("[[" + file.basename + "]]")
%>