Provide an option to automatically save the document (not save the backup of the document for crash recovery which we already do provide) at specified intervals.
This is an easy hack. I won't be able to provide code pointers yet, but if you are interested, do ask for a code pointer and I'll do my best to dig into the code to find out.
The implementation of the AutoRecovery is in: framework/source/services/autorecovery.cxx Particularly see implts_saveDocs() and implts_saveOneDoc() that implement the saving itself. The UI of AutoRecovery is here: cui/source/options/optsave.cxx Ideally the AutoSave should use the above mentioned code; when turned on (that means, new checkbox to enable AutoSave should be introduted), we would first copy the current document to the AutoRecovery area, and then write directly over the document being edited, instead of writing to the AutoRecovery area as it is now.
"write directly over the document being edited" sounds awful, wouldn't it be better to write to a temp file and rename that over the file being edited? at least i hope we're doing that kind of thing when saving...
Krisztian Pinter committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=895898596c72fd14db2abec3aeaab74d583769e5 WIP: fdo#47011 autosave feature The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Krisztian Pinter committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=8933f19100adbf9f2601db0f3ac67dd3b1887ef7 fdo#47011 autosave feature The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Krisztian Pinter committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/help/commit/?id=4337668c56b83d04649591820d2fb243537b7dad fdo#47011 added autosave help description The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 94706 has been marked as a duplicate of this bug. ***
For the record: You can find this in: Tools > Options > LibreOffice > Advanced .. Expert configuration search AutoSave. (Submitted bug 94780 for the Help.)
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyInteresting) [NinjaEdit]