It would be great if we can export attachments in the same folder where their notes are located. Currently, when we export, it creates two different folders.
Notes - Contains the markdown files and sub-folders
Resources - Contains the attachments
I think it would be great if we can export notes/notebooks like this:
I also really want to keep my notes content+attachment together, but in my case I dont use a resource twice.
Theoretically, is it possible to use a resource twice?
And when exporting, would the consequence be that a resource is exported multiple times in every folder containing a note?
I really need this feature as well! I want to create backups of my notes that are usable without joplin.
When I'm exploring my notes with a simple file explorer and text editors it would be really helpful to have the attachments in the corresponding folders.
Since there seems to be no existing solution, you could take a try and implement it using Joplins data API. However, there might be some obstacles, like spanning up a tree with all notebooks, notes and resources and handling duplicated notebook names. Also for reimporting, you would need to write another custom script.
Edit: I took a try and wrote a script without considering many corner cases. It works on linux for my Joplin profile (314 notes, 9 resources):