bible_study/templates/New Miscellanies Note.md

9 lines
486 B
Markdown
Raw Normal View History

2023-10-15 00:42:44 +00:00
<%*
const note_name = await tp.system.prompt("Name of Note")
const book = (await tp.system.suggester((item) => item.basename, app.vault.getMarkdownFiles(), false, 'Choose book and/or chapter of Bible')).basename
const verse = (await tp.system.suggester((item) => item.heading, app.metadataCache.getFileCache(tp.file.find_tfile(book)).headings, true, 'Choose book verse')).heading
await tp.file.rename( "D" + await tp.user.count() + " - " + note_name + " - " + book + '_' + verse)
%>