Add Auto-Save support to Amethyst

When typing a note, the application can sometimes crash (due to lack of memory?) when switching applications, uploading an image file, etc. It’s frustrating to have a note mostly typed out and then lose it all from a crash of the application. The goal of this bounty is to help mitigate the impacts by preventing the loss of a partially written note to avoid needing to rewrite it all, while adding some helpful functionality.

The current workaround that myself and others due is to periodically select-all and copy to the clipboard, or prepare the note elsewhere to copy and paste in.

To satisfy the conditions of the bounty, Amethyst should be modified (with a release) to auto-save in local storage any note being typed out and be able to recover such a note to continue if the application crashed and is restarted. The loading of the saved data should happen when clicking the icon to write a note if the note was not sent or cancelled. When the note is signed and sent to relays, the auto-saved note in storage can be cleared.

@@VitorPamplona @@greenart7c3

Github Project Issue: https://github.com/vitorpamplona/amethyst/issues/748 Github Pull Request: https://github.com/vitorpamplona/amethyst/pull/749


No comments yet.