Hi everyone, due to some difficulties with a plugin, I have 8000 attachments that are no longer linked to my notes. Specifically, for images with the format , the filenames are consistent but the attachment-ids are wrong now.
Obviously, this is pretty stressful and annoying since 2+ years of notes and 8000+ different attachments were affected. I am specifically interested in knowing things like:
is there a way to systematically replace attachment ids in existing notes
is there a way to rollback the "attachment registry" (i.e. Tools > Note attachments menu)
is there an easy way to completely rollback my Joplin notebook to a previous state
I searched around a bit and think the best bet for replacing list of terms in bulk is to fork replace utility in joplin-utils by @rxliuli. As barebones adhoc solution it needs just a single loop passing values to $keyword / $replace and form(s) to upload the terms.
Thanks everyone for suggestions. The plugin that I used was attaché. According to docs, it was supposed to swap-in-place the attachments using the OLD attachment id (which is good, because it allows notes to remain the same). but in my particular usage it created NEW attachment ids which invalidated the old notes.