trganda / obsidian-attachment-management

Attachment Management of Obsidian
MIT License
142 stars 8 forks source link

Attachment does not automatically renamed (bug) #85

Open neins opened 6 months ago

neins commented 6 months ago

Hello. Plugin doesn't change path of corresponding attachment

I choose these settings for attachments: Obsidian settings: Files and links -> Save new attachments in vault root by default Plugin settings: Save in the folder specified below Root folder: _attachments Attachment path: ${notepath}/${notename} Attachment format: ${notename}-${originalname} Automatically rename attachment: is set

(trying to use hidden folder .attachments) I tried to use hidden named folder .attachments but unfortunately it working in half way. Plugin creates all folders by the .attachment/${notepath} pattern but the attachment file always appear in vault folder and not renamed by attachment format

There is simple structure for example:

image

When I attach some image to the note the plugin creates corresponding path: _attachments/projects/1/note/note-0.png But when I move (and/or rename) note.md from folder 1 to folder 2 I expect that attachment(s) will be automatically update its path, but it is still remain in the same location in _attachments

Should Automatically rename attachment setting work in this scenario?

trganda commented 6 months ago

Thinks for report this problem.

Of course the Automatically rename attachment setting should be working in this case. This bug was case by some problme of obsidian cache, I will fix it.

trganda commented 6 months ago

You can try close and re-enable this plugin

neins commented 6 months ago

Yes, I re-enabled the plugin and it is works perfectly. Thank you