Introducing my beta release of "Replace Resources", a Joplin Plugin that mass replaces Resources.
I got tired of manually replacing resized images (to save space on my free Dropbox account), so wrote this to automate the Joplin side of things.
Note: due to Joplin's synchronisation conflict safeguards, this is a two-step automated process, first deleting resources and starting synchronisation for you, followed by posting (creating) resources using the original resource id.
Important: your Notes are NOT updated at any stage, and your source files are NEVER deleted, they are simply moved to different locations so you know the status of each file/resource.
I'm calling this a beta as it works functionality as I desire, however I'm new to Joplin/Typescript/Jest/Node and am having some challenges figuring out how to mock things so I can run unit tests correctly.
So any guidance on this topic will be very much appreciated!
I wonder, is it possible to run the resource replacement automatically? as a scheduled job or every time I run Joplin
The use case is having the latest rendered release in a note, i.e. putting processed versions of a work to the note related to it.
Say I render a .pdf from latex, (or getting a binary from source code, generating a .png chart from .csv, etc) and would like to put the .pdf to its place in note structure.
Perfect ! It just works! In fact, it works so well, I feel like I don't need a scheduled replacement. For my personal use cases, I can adjust the sync frequency and it's going to be just fine.
I'm still testing it and probably will be doing it for a while but so far it works great. At last, I can tightly integrate Joplin with changing files and make my notes truly evergreen .
I think this plugin opens up new horizons for notetaking. So, probably I will take some time exploring those
General update that I've changed the name of this plugin from Replace Resources to Attache based on a great suggestion from @graphit0 !
Hopefully this doesn't cause too much grief for folks, please let me know what I could have done better.