https://bugs.documentfoundation.org/show_bug.cgi?id=160769

--- Comment #11 from bikehel...@gmail.com ---
(In reply to Stéphane Guillou (stragu) from comment #10)
> I think solutions like bug 146769 and bug 117237 should be prioritised,
> instead of some users relying on killing the process to restore all
> documents.
> 
> But considering some users are surprised by the new behaviour, I'm wondering
> if the dialog could somehow show all files, but differentiate between
> modified and unmodified ones, like two sections with "Needs recovering" and
> "Changes already saved" headers, still giving the options to restore
> unmodified. That would make it clear what might have missing data, and what
> definitely wouldn't.
> Just a thought.

There's no need to reinvent the wheel here. Standard behaviour in Windows is to
stick a * in front of the filename if it needs saving. Although not universal,
I have seen that in Linux Distros and MacOS as well. You can use the same
dialog window, with all files present, and just stick a * on the ones with
unsaved changes. If the list is sorted alphabetically, that should also put
them straight at the top.

Then put two buttons below: [Recover All Documents] [Recover Only Unsaved
Documents] to determine the recovery behaviour that the user gets.

And then put in a new confirmation when exiting LibreOffice from the File menu
specifically (not the X in the top right), similar to the Opera Web Browser.
"Reopen all documents at next start?" [Yes] [No] [Cancel]

(Not the wording of Opera's, but you get the idea once you've tried it once or
twice.)


And then as a final quality of life update (This would require larger code
changes), have it backup the open documents (on exiting) to the working drive
so that even if the originals disappear, it can fully recover everything at the
next start - both modified and unmodified - if desired. This should be
toggleable in the Settings in the Load/Save area. Likely beside the "Always
create a backup copy" option, which saves backups onto the working drive when
saving. I would split that to two options if implemented, "Always create a
backup copy when saving", and "Always create a backup when exiting LibreOffice"

If this is implemented, it should alert you if the original for reopened
documents is no longer present. The type of person using this feature regularly
would want to know if suddenly their original has been renamed/deleted/etc from
outside of the program. So this adds a lot of polish on top, for that type of
user, in that you are treating their precious documents as extra important. By
slightly modifying the recovery feature you effectively add a full secondary
backup layer to LibreOffice - unless they shut it off. At least a few people
would heap praise on the programmers if implemented right. The wording that I
would use (on a bright banner bar at the top of the open document) would be:
"This document was not found at the previous filename and location. Please
re-save this or reopen the original if necessary."

That alerts the user to go re-open it if it changed from (for example) "2024-03
Quarterly Inventory.ods" to "2024 Q1 Quarterly Inventory.ods", etc.; they
either go open the proper one and save to it, or re-save the open one and
continue on from there. It avoids them accidentally splitting their document
into two chains when they (or someone else) were doing folder/filename cleanup.

That's about all the gotchas that I can think of. With that implemented, it
becomes an incredibly handy feature for one type of user. Even with only a
limited / first part implementation, it's much more useful than what we have
now. I hope that helps a programmer that doesn't need this at all, to
understand a feature implementation that would be very useful to some other
types of users.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to