FR: Detect renames made outside of Obsidian

Currently if you rename/move file/folder outside of Obsidian, it is processed as create event followed by delete event and rename event is not called.

I think Obsidian can detect such cases based on stored file/folder metadata and trigger rename event instead.

For what it’s worth, I did such detection in this experimental plugin.

2 Likes

Made my own plugin [Plugin] External Rename Handler

2 Likes

@ush your version is also good but it has one issue:

For each rename outside of Obsidian the following events are triggered in such order: create, delete, rename (back to old name, by your plugin), , rename (again to the name, by your plugin)

Those create / delete / rename (back) events are undesirable because their handlers might have undesired side effects

My version triggers only one rename event as it is done if you rename using Obsidian UI

1 Like