obsidian-rpg-manager
obsidian-rpg-manager copied to clipboard
[Feature]: Make closing a note save the content in text fields
Please make sure this feature request hasn't been suggested before.
- [X] I searched previous Issues and didn't find any similar feature requests.
Feature description
Currently, when editing or creating any element with a text field, the content of such text fields will only be saved when clicking the save button at the button. If you change to another note in the vault whiel text field is not saved yet, you lose all changes.
I have lost longer edits countless times to this when looking something up.
Solution
It would be helpful if the content would be automatically saved when leaving the text field/note.
Alternatives
Autosaving the content in some interval would also help.
Additional Information
Video of the current behavior: https://github.com/carlonicora/obsidian-rpg-manager/assets/16648242/32d7a575-9cc5-4b91-9d1a-97b69455b5ae
Hi @Murgeye
thanks for your report. This is known and is a limitation I have with the current setup where the metadata are saved in the note codeblock. Unfortunately this cannot be solved in the present form, as if I save the note mid-writing, Obsidian requests a re-rendering of the component, so you lose the edit status.
I am working on Version 5, which will move all the metadata away from the codeblock, and in doing so will allow me to automatically save the data.
Hold on, working on it in my free time!
Hi @carlonicora
must have missed it if it's documented somewhere, sorry for that.
I really appreciate what you do with this plugin! Take all the time you need!
@Murgeye Alas it was not described in the documentation, and thanks for voicing it (I have been swearing against the unsaved data as well).
Thanks for the report, it really helps!