trganda / obsidian-attachment-management

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

Move a note from one folder to another caused all files in the attachment folder to move with that note? #68

Open spiritualgeek opened 9 months ago

spiritualgeek commented 9 months ago

Moved a note between folders

So in this case simply moving file1.md to folder 2 resulted in every single attachment being moved from folder1\attachments to folder2\attachments?

├── folder 1/
│   ├── attachments
│   └── file1.md
└── folder 2/
    └── attachments
huyz commented 9 months ago

To be clear, are you asking a general question (usually you would use the present tense of verbs in English) or are you asking about what happened when you used the extension (here you would use the past tense of verbs in English)?

trganda commented 9 months ago

Moved a note between folders

So in this case simply moving file1.md to folder 2 resulted in every single attachment being moved from folder1\attachments to folder2\attachments?

├── folder 1/
│   ├── attachments
│   └── file1.md
└── folder 2/
    └── attachments

If you enabled auto rename, the associated attachemnt folder of a note will be renamed

spiritualgeek commented 9 months ago

Thanks for the reply

In folder 1 there would be many other notes, so the attachments folder would have a few 100 files. In this case, I do not understand why the plugin moved everything.

spiritualgeek commented 7 months ago

Hi @trganda - This is still happening. When you have time, could you please look into this?

trganda commented 7 months ago

I will take a look :)

trganda commented 7 months ago

Hi @spiritualgeek, sorry for waiting so much time. I have released https://github.com/trganda/obsidian-attachment-management/releases/tag/0.8.5, the rename operation will only rename the attachments linked by the notes file.

As shown in the picture below, I hope this can help you.

Screen-2023-11-15-105147

spiritualgeek commented 7 months ago

Thank you so much. I'll test it soon and let you know

trganda commented 7 months ago

Thank you so much. I'll test it soon and let you know

Hi, @spiritualgeek There is another problem (https://github.com/trganda/obsidian-attachment-management/issues/85) may leading the rename not working right, since the cache of ob not updated. please upgrade to latest version for better experience.