trganda / obsidian-attachment-management

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

Add command to "Rename attachments within current file" #29

Closed luckman212 closed 10 months ago

luckman212 commented 1 year ago

It would be amazing to have be able to manually trigger the plugin to rename & reorganize the attachments within the currently active file.

By mistake, I triggered the "Rearrange linked attachments" action, and it re-organized my entire vault 😱

(awesome plugin by the way, thank you!)

trganda commented 1 year ago

Tks for your feedback, "Rearrange" feature was under experiment right now.

The "Rearrange linked attachments" action was only working for active file right now. Another action "Rearrange all linked attachments" was added to replace the original action.

trganda commented 1 year ago

Please upgrate to https://github.com/trganda/obsidian-attachment-management/releases/tag/0.6.0

luckman212 commented 1 year ago

Thank you, I updated to 0.6.0 and I did test the new command. It works, but only moves the existing files into their subfolder, but does not rename them. Is there any way to also trigger the function that renames the attachments to keep them consistent? (i.e. the same thing that would happen if you manually cut & then re-pasted each image in a file)

trganda commented 1 year ago

It's a mistake of my function, I have fixed in https://github.com/trganda/obsidian-attachment-management/releases/tag/0.6.1. You could update and try again.

luckman212 commented 1 year ago

Perfect! Thank you so much for this!

trganda commented 1 year ago

Glad to hear it, feedback are welcome