Add autosave function to Okular
Wen Chang
changyaowen19980629 at gmail.com
Thu Jul 18 04:28:31 BST 2024
That's indeed the concern of the autosave method.
Thanks for letting me know.
About your concern, I provide my suggestion as follows:
> Drawback would be that it is unusual and unexpected for many users
(unless the
> user explicitly configured it that way).
The autosave function is disabled by default. Once the user clicks the
button to turn it on, changes will be saved automatically. This ensures
that users are aware they are in autosave mode. Additionally, autosave will
remain enabled the next time the user opens Okular.
Does implementing the method this way make more sense? Feel free to let me
know.
> If changes are saved automatically, you can’t use the file the next time
> anymore, because it is already filled.
In this situation, I suggest saving a backup file whenever the user closes
Okular. This would create a list of backup files in a folder located in the
same directory as the document. Users would then be able to roll back by
checking different versions of the backup files.
To my understanding, the current policy in Okular does not allow users to
revert to the original version of a file once they have saved it manually,
right? Please correct me if I am mistaken. Thanks.
Best,
Wen
<okular-devel-request at kde.org> 於 2024年7月17日 週三 下午7:00寫道:
> Send Okular-devel mailing list submissions to
> okular-devel at kde.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.kde.org/mailman/listinfo/okular-devel
> or, via email, send a message with subject or body 'help' to
> okular-devel-request at kde.org
>
> You can reach the person managing the list at
> okular-devel-owner at kde.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Okular-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: Add autosave function to Okular (Laura David Hurka)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 17 Jul 2024 07:26:20 +0200
> From: Laura David Hurka <laura.stern at mailbox.org>
> To: okular-devel at kde.org
> Subject: Re: Add autosave function to Okular
> Message-ID: <6009722.DvuYhMxLoT at doro>
> Content-Type: text/plain; charset="utf-8"
>
> On Wed, 17 Jul 2024 11:01:53 +0800 Wen Chang wrote:
> > I can do it that way by saving the changes in a backup file.
> >
> > I would like to know why modifying the file on disk without user
> > interaction is a bad idea based on your experience.
> >
> > Also, I noticed that VSCode automatically saves changes once they are
> made.
> > To my knowledge, only the file that the user is working on will be
> modified.
> >
> > What drawbacks would there be if a file is directly modified without user
> > interaction?
>
> Drawback would be that it is unusual and unexpected for many users (unless
> the
> user explicitly configured it that way).
>
> Imagine you have a form that you need to fill out often, and then just
> print
> once.
> If changes are saved automatically, you can’t use the file the next time
> anymore, because it is already filled.
>
> It would also not make much sense with “Open...”, “Save”, and “Save As...”.
>
> Laura
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel
>
>
> ------------------------------
>
> End of Okular-devel Digest, Vol 214, Issue 22
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20240718/0caf1ab8/attachment.htm>
More information about the Okular-devel
mailing list