Advertisement
dhniceday

Untitled

May 6th, 2024
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let pg = dv.current()
  2. let studytopic = pg.studytopic.replace(/[%]+/g,'');
  3. const allPdf = app.vault.getFiles().filter(file => file.extension == 'pdf' && file.path.includes(studytopic));
  4. let myList = allPdf.map(file => dv.fileLink(file.path));
  5. for (let line of myList) {
  6.     dv.paragraph('- [b] ' + line);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement