0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.65k stars 474 forks source link

[Feature request] How do you propose to restore the session to all people when installing Windows? #1219

Open korenevskiy opened 1 year ago

korenevskiy commented 1 year ago

I'm going to reinstall Windows now. Where is the session with unsaved tabs stored?

Please make the session storage in the documents folder. So that when reinstalling Windows, the session is automatically restored when you start Notepad.

0x7c13 commented 1 year ago

First, it is called "Session" not "Archive" or "Persisted Data" for a reason. It supposed to be deleted after you reinstall the OS. This is session snapshot feature not auto-save feature. Please save and manage your files carefully.

korenevskiy commented 1 year ago

So what. You're right, this is a snapshot of the session. But this is not a reason for a person not to make a backup copy of working documents that are still in the process of development. What's wrong with being able to back up a session?

0x7c13 commented 1 year ago

I don't mean that you cannot do it or this is not allowed. What I mean is that this should not be a feature or should ever be documented since it does not make any sense from a product standpoint. The session data is part of the state of the app (It not only contains the editing file content but also state of the app including which document was opened or is shown before app close). This is not considered as user documents in any sense. So your justification of moving them to document folder is not convincible.

On the otherhand, this code is 100% open sourced. If you have special need for it, you could always build your own version of it and do whatever you want to make your life eaiser.

korenevskiy commented 1 year ago

let's look at it from a different angle. we will not look at functions, but scripts. I use Notepad as notes grouped by tabs. You are so enclosing the perfect shape of Notepads that you are not allowing Notepads to cover a new use case. For some, these are text documents, and for others they are just notes without documents. I have used GitHub many times and made duplicates. But I'm just suggesting embracing a new scenario.