farux / obsidian-auto-note-mover

This is a plugin for Obsidian (https://obsidian.md).
MIT License
289 stars 22 forks source link

BUG: When use tag wrangler to change all the matched tags cannot move all of them #4

Closed Quorafind closed 2 years ago

Quorafind commented 2 years ago

It will move only one of them when use tag wrangler to change the matched tags in all files.

Quorafind commented 2 years ago

Maybe use dataview to query all the files with matched tags will be a good way to move all files

farux commented 2 years ago

Hello @Quorafind I was currently using app.metadataCache.on('changed') as editing event handler. If I use app.vault.on('modify') in addition to it, it seems to catch the changes made by tag wrangler. It worked in a simple test. If it looks ok, I'll add the feature.

Quorafind commented 2 years ago

Hello @Quorafind I was currently using app.metadataCache.on('changed') as editing event handler. If I use app.vault.on('modify') in addition to it, it seems to catch the changes made by tag wrangler. It worked in a simple test. If it looks ok, I'll add the feature.

Yes, I think this will work, would you want to add this?

farux commented 2 years ago

Added in 1.0.3.

farux commented 2 years ago

With the help of @pjeby, the author of tag wrangler, this problem was solved in 1.0.4.