ludovicchabant / obsidian-remember-file-state

A plugin for Obsidian that remembers cursor position, selection, scrolling, and more for each file.
MIT License
48 stars 1 forks source link

State not saved until vault closed or Obsidian closed #18

Open Joolyan opened 1 year ago

Joolyan commented 1 year ago

Thanks for sharing this plugin.

The plugin would be more reliable and useful (for multi-device users) if '/.obsidian/plugins/obsidian-remember-file-state/states.json' was also updated when Obsidian saves the edited markdown files.

This would hopefully not require the use of timers and therefore maintain a key benefit over the 'Remember cursor position' plugin.

ludovicchabant commented 1 year ago

Hi! What is your workflow exactly? Do you have your vault in, say, Dropbox, and you want to sync the states.json file across devices while keeping Obsidian open? Isn't that a dangerous workflow that can easily lead to conflicted files as they're changed on multiple devices at the same time? Or maybe I'm misunderstanding something?

Joolyan commented 1 year ago

I'm a new Obsidian user coming from nvALT and this is the workflow I'm hoping to implement. The first issue was that states.json was not updating because Obsidian would not be closed and opened each day. And secondly, the vault is saved to an iCloud Drive folder for use on mobile devices, though mobile and desktop devices are not used at the same time. Hope this helps.