Bug 512528 - Editor state kept in memory indefinitely
Summary: Editor state kept in memory indefinitely
Status: REPORTED
Alias: None
Product: KleverNotes
Classification: Applications
Component: UI (other bugs)
Version First Reported In: 1.2.2
Platform: Other Linux
: NOR wishlist (vote)
Target Milestone: ---
Assignee: Louis Schul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-23 20:21 UTC by mdavidsaver
Modified: 2025-11-23 20:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mdavidsaver 2025-11-23 20:21:05 UTC
SUMMARY

It appears that changes to the active note are in some situations kept in memory indefinitely, leaving them vulnerable to loss in the event of a crash (system or app).  I see that changes are flushed to disk when switching note.  I wish that edits were also flushed on a timer.  It would also be helpful to have some GUI indication when changes have not yet been written.

The logic for this might be to write to disk 3 seconds after the last change.  Start, or restart, a timer on each change.  Write to disk on expiration.  So changes are written after the user stop typing for awhile.

Or there is also the good old fashioned Save button.  I have been using kwrite/kate for note taking, so like many others, I am conditioned to reflexively `Ctrl+s`.

STEPS TO REPRODUCE
1. Create a new app.
2. Observe a zero length file appear on disk
3. Type some content
4. Wait 1 minute

OBSERVED RESULT

Still a zero length file.

EXPECTED RESULT

Not zero length file, containing changes shown in editor.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 13