Coder Social home page Coder Social logo

Persist unsaved/scratch documents about rnote HOT 3 OPEN

melvyn2 avatar melvyn2 commented on June 12, 2024
Persist unsaved/scratch documents

from rnote.

Comments (3)

EverardNisse avatar EverardNisse commented on June 12, 2024 2

Today I learned that this wonderful key feature is still cooking in the oven... by forgetting to save a document :)

from rnote.

MariusAlbrecht avatar MariusAlbrecht commented on June 12, 2024 1

I like this feature. I also like the idea of widening the issue so that all tabs -regardless of whether they've been saved- will be restored on startup. However I don't like the idea of this always being enabled, as is the case with crash recovery. I think its to be expected that -by default- unsaved documents actually won't be saved.
I also think its to be expected that -by default- the program will start up without any opened tabs.
If the user actively chooses to not save documents and close the program then nothing (meaning both unsaved documents and open tabs) should be saved and later restored.
The only two reasons for recovery I see are

  1. anything but the user causing a loss of data (e.g. a crash). In this case the user didnt consent to that loss.
  2. an opt-in.

I think recovery should overall be handled similar to session restores in e.g. firefox (https://support.mozilla.org/en-US/kb/restore-previous-session), basically always trying to restore in irregular circumstances (crash e.g.) but requiring an opt-in for anything else.

from rnote.

LeSnake04 avatar LeSnake04 commented on June 12, 2024 1

First of, sorry for the delay on document recovery, I got my first full time job last summer and was busy with other projects for the past months.

I have thought about this as well since someone suggested that on the matrix channel and realized when my PR is finished this feature should be pretty easy to implement since the recovery already does the caching part, and we just need to not clean up when close and maybe open the document automatically.
(Fun fact: During development of recovery I basically had this feature for a short time until I did the cleaning up function on closing)

from rnote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.