obsidian-templates/workbench.md

10 lines
349 B
Markdown
Raw Normal View History

2023-04-28 11:28:14 +00:00
<%*
const selection = tp.file.selection()
const workbench = tp.file.find_tfile("Workbench") // Name of your Workbench file
if (selection) {
// New line, bullet point with today's date prepended
const line = "\n- " + tp.date.now("YYYY-MM-DD ") + selection.split("\n").join(" ")
await app.vault.append(workbench, line)
}
tR += selection
%>