Open itoldusoandso opened 5 months ago
At the moment, it is expected behavior. But I was thinking about expanding it so that it would save attachments on drag or paste into the companion folder — although I'm not sure if this is possible with the plugin API. I need to look into it.
Regarding moving existing attachments of a note into the companion folder retroactively, I wonder if this can be done trivially. Perhaps it would be possible by parsing the note's markdown and moving all linked images and attachments—but as these could be used in other notes as well, I'm not sure this would be a good idea (moving the attachments). So, I would say this is out of scope and better solved manually (or with a short script).
After reading the second paragraph again, it could be done as an additional command that you invoke per note, which would import the attachments for the given note. Would this help?
Thank you, I think there is still value, I can tell there are people moving from Evernote so they experience same situation if they use the same importer.
I have done lots of research trying this that testing etc.. lots of time....
Posted the update here:
_That's good to have a backup, just found I also need PDFs not only images, so after long search this plugin can do both, move existing attachments: Consistent Attachment and Links plugin...Ensure proper config: _resources\${filename}.
And for new attachments I use Attachment Manager plugin as I found it more effective. _
..... it works all fine, but just found Attachment Manager plug is not supported on the mobile. So if attachment was added on the mobile, I would still need to run the the Consistent Attachment and Links plugin after the fact (after attachment was saved) to move it to the correct location I want (assets/notename/....). The Consistent Attachment and Links plugin can be run anytime later manually and it is also supported on the mobile device.
There are a few other plugins like Custom Attachment Location, which also can do what I need (also not available on mobile but works okay otherwise).
Another extension Attachment Management also works fine, but requires specify the attachment file types in the plugin settings page. This extension is also supported on mobile. But I am not using this because as I said, I had to specify the attachment file types, it doesn't have the option to cover any file type.
So there are a few options available, but they are not obvious and takes a lot of time to go through the plugins and test.
Fortunately I found this working now. So this saves you perhaps time if you are interested to look into this so you can find how other plugins work.
Thanks for the feedback, I will need to look at the second plugin you mentioned in details. It looks like it already would solve the part I wanted to code myself. Perhaps I don't need to develop it at all :-)
If the note attachment is saved some place in Vault and I select Reveal Companion Folder, it will create a subfolder (matching the name of the note). So far so good... But the issue is there is no attachments being moved into the newly created folder. The attachments continue sitting around together in the same Is there anything I can do? Or is this expected behaviour?