Use case or problem
Obsidian v1.8 introduces “Download attachments for current file”, but what if I want to export images for or mirror multiple files at once? The solution would be “Download attachments for current folder” or “Export folder” — command accessible via RMB click on the desired folder.
I use obsidian for TTRPG notes for my players and I have a lot of unsorted attachments. Going through them was such a chore, but with this new function it is easier, yet I still have to go through dozens or even hundreds of files which are all located in one folder.
Such functionality will allow to export parts of the vault and makes the vault way more portable, it’s simple to implement and builds up on already implemented function to take it to another level!
Proposed solution
Two ideas on how to approach this:
-
Make a “Download attachments for current folder” command that’s accessible via RMB click on the desired folder and just run “Download attachments for current file” through the folder sequentially or via some other algorithm.
-
This can be taken to another level and done instead as “Export folder” command which will copy the folder contents, make another folder called “Files” and put all attachments in there and ideally put it all in zip archive or something. In most cases you will want this functionality anyway so this sounds like a sensible solution, and if you want only files then just delete all the other files from the created copy, leaving you only with the desired “Files” folder.
Current workaround
Currently the only way to achieve this is to go through files manually, which is very tedious.
Related feature requests
Download attachments for current file — Workflow?]('Download attachments for current file' - Workflow?)