brain/00 Kontext/Templates/_Meeting Note.md

14 lines
421 B
Markdown

<%*
const result = await tp.user.create_meeting_note(tp);
if (result) {
// Rename and move the current file to 03 Bereiche/Meetings/
await tp.file.rename(result.fileName);
await tp.file.move("03 Bereiche/Meetings/" + result.fileName);
// Replace file content with the meeting note
tR = result.content;
} else {
// User cancelled — delete the empty file
await app.vault.delete(tp.config.target_file);
}
%>