plasmabit / timethings

Show clock, track time spent editing a note, and track the last time a note has been edited.
GNU General Public License v3.0
15 stars 1 forks source link

modified externally and merging changes? #3

Open TechnoMaverick opened 11 months ago

TechnoMaverick commented 11 months ago

Hi there!

Kinda new to github but loving the plugin. However, I keep getting this popup pretty often, and I turned off some other plugins and have narrowed it down to this one being the cause. I did have a note copy itself because of an edit conflict, but that's only happened the once.

Is there any way to turn the notification off, or to protect from the doubling notes? I didn't lose anything, but it was strange.

Otherwise the plugin works fantastically for my needs. Sorry if there's an obvious answer to this.

Obsidian_ceC1GxDSyH

plasmabit commented 11 months ago

Hello!

Explanation

This is a pretty common problem for the type of a plugin that edits files often. It happens due to how Obsidian's API that the plugin uses by default works. For some reason, if you edit a note, and a plugin runs code to modify YAML through it, it treats either you, or itself as an "external program" that changed the file at the same time as you did, and then merges changes. It seems to be just annoying and not dangerous.

Solution

image

image

Currently those are the options available. In the future I will look into fixing this behavior, but can't promise anything, because I don't even know if it's possible yet.

TechnoMaverick commented 11 months ago

Hey, thank you so much! I really appreciate the response and the breakdown. I'm going to give solution number one a shot, I don't use mobile Obsidian anyway.

And thanks again for the plugin!