Advertisement
dhniceday

Templater script for Obsidian (by user request)

Nov 9th, 2022 (edited)
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.27 KB | Software | 0 0
  1. <%*
  2. const rowLength = 50
  3. const note = await tp.system.prompt("Note")
  4. const link = await tp.system.prompt("Link")
  5.  
  6. let numberDots = rowLength - note.length - link.length
  7.  
  8. tR += `${note}`
  9.  
  10. var i = 0
  11. do {
  12.     tR += `.`
  13.     i++
  14. } while (i<numberDots)
  15.  
  16. tR += `${link}`
  17. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement