<%*
const referenceTitle = await tp.system.prompt("Title")
const title = tp.user.zettelize(referenceTitle)

tp.hooks.on_all_templates_executed(async () => {
const file = tp.file.find_tfile(tp.file.path(true));
await app.fileManager.processFrontMatter(file, (frontmatter) => {
frontmatter["aliases"] = referenceTitle;
});
});

await tp.file.rename(title)
await tp.file.move(${tp.user.variables("otherReferencesPath")}/${title})
-%># <% referenceTitle %>