How to compile assets - images, pdfs, etc. (whose paths contain string XX) in a (list)-query #1590
Unanswered
Gewerd-Strauss
asked this question in
Q&A
Replies: 1 comment 6 replies
-
First clarification: dataview works only with .md files. So, you can't list pdf files in regular queries. // get files via Obsidian api
const files = app.vault.getFiles().filter(file => file.extension == 'pdf');
// creating a list with links
dv.list(files.map(f => dv.fileLink(f.path))) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a subfolder in my global
assets
which contains pdf's I need to digest in preparation for my upcoming internship.Now, with the "Various Complements"-plugin set up it would be easy to create the link, but typing down 78 filenames manually seemed - annoying.
My first thought was to just put them in a table, but then I realised I don't actually know how, or even if this is possible.
To be precise, I want to list all assets (currently all
.pdf
-files, might change later, but no markdown files) in path001 assets/Internship preparation/
.Is this even possible? My first attempt (cf. end of post) was unsuccessful.
Thank you for any clarification
~Gw
Beta Was this translation helpful? Give feedback.
All reactions