Keep change history

I am kinda surprised this hasn’t brought up before, right now every undo / redo change is lost when changing page, and even just toggling vim mode, would there be a way to enable saving the change history for each page ? Would this be hard to achieve or not practical for some reason ?

To be clear, i backup my space with git, but this is manual, can be cumbersome, and without committing every 5 seconds you can’t restore just a few thing.

Another reason I think this would be cool is : sometime on mobile there is a weird thing than happens : everything disappear and is replaced with some weird chars, and if i loose page history at that moment ill loose my edit and everything since last commit, which is really not cool, keeping history would solve that weird edge case

would this be possible to do as a plug if not in the base soft ?

ty ^^

2 Likes

Codemirror, the editor SB uses, does seem to allow for serialization of the history. So

  • per Session, it would be easy to achieve
  • per Client, doable
  • per instance, not really doable, because there is no way to sync data between clients, except as files.

Assuming serialization and deserialization work as expected. We’d probably also need to take some considerations regarding sync, but that shouldn’t be impossible.

1 Like