trganda / obsidian-attachment-management

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

Enhancement: Attachment Sequence #50

Closed hrxkr closed 10 months ago

hrxkr commented 10 months ago

The Attachment Format was assigned as ${notename} in the plugin settings.

Eg. Note named "try-attachment"

Actual The attachment seq. generated was try-attachment, try-attachment-1, try-attachment-2....

Expected The attachment seq. to be try-attachment-1, try-attachment-2, try-attachment-3....

It would be neat if the sequence number (1) is assigned from the very first attachment.


Thanks for a fantastic utility plugin 👍

trganda commented 10 months ago

Hi @hrxkr , the suffix number was added for duplicate file name if there is already an attachment with name try-attachment. But, we don't konw whether there will be more same file add to one folder.

So, there is no reason to add a number 1 to the attachment that be firstly placed. Hope you understand.

hrxkr commented 10 months ago

Ok got it. Thanks @trganda!