9 lines
486 B
Markdown
9 lines
486 B
Markdown
|
<%*
|
||
|
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)
|
||
|
%>
|