bible_study/templates/New Miscellanies Note.md
2023-10-14 20:42:44 -04:00

486 B

<%* 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) %>