Push ref
<%* const files = app.vault.getFiles().map(f => f.path); // Get all file paths in the vault
const targetFile = await tp.system.suggester(files, files); if (!targetFile) { new Notice("No file selected. Operation cancelled."); return; }
// Read existing content const existingContent = await app.vault.adapter.read(targetFile);
// Fetch the template content const templateContent = await tp.file.include("reference"); // Adjust template path
// Append the template content await app.vault.adapter.write(targetFile, existingContent + "\n\n" + templateContent);
new Notice(Template appended to ${targetFile}
);
%>