Falcion / UNITADE.md

A plugin for note-taking app Obsidian™ which allows you to treat any file extension as markdown note-file
MIT License
42 stars 0 forks source link

[BUG]: Potentially caused a file to go missing #16

Open cwriasir opened 5 months ago

cwriasir commented 5 months ago

Contact details

No response

What the essence of the bug

I failed to replicate what had just happened, thus the "potentially", but I thought it would be somewhat informative to create this issue in case there really is some bug that might cause similar problems in the future.

This extension has brought convenience to my in-vault management so far, so thanks for that. With all due respect, though, the plugin (or the toggling off thereof) potentially caused a file to go missing.

Context: I accidentally opened an SQLite database file (*.db) in my vault while this plugin was enabled. Intending to reopen it with some other external application, I opened another existing Markdown file in the same directory in the same tab, and toggled off this plugin in the Community Plugins page. When I came back to the side panel, the *.db file vanished from the side panel—it turned out that the file had gone missing from the file system.

Environment:

Version of an project's essence

...

On what OS you have encountered the bug.

No response

Code of conduct

Issue policy

Falcion commented 5 months ago

Considering the fact that UNITADE does not work with the file system (except reading plugins folder from vault), but only with their registration and does this through the Obsidian's API, it is unlikely that the problem lies specifically in this plugin, however, thanks for this issue, in case the bug is repeated, this issue will be mentioned there too.

And again, thanks for the issue!

Falcion commented 3 months ago

Remembering this topic, as it turned out, the combination of this plugin and the OBSIDIAN functionality itself can, at a minimum, damage files; in the latest update (2.0.0), two modes for dynamically registering extensions were added, and a module for ignoring extensions/files was also added.

To my regret, it is still unknown how to specifically avoid such situations, except to be more careful in using the plugin (which was also implemented in the latest update), because the whole point of editing files lies only and only in the application, and not in the plugin.