File changes from last two weeks suddenly reverted (Linux/Ubuntu)
-
[x] Searched existing issues to avoid creating duplicates.
-
[x] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
-
[ ] Searched http://support.typora.io/
Describe the bug When I opened my daily-log.md file today, it was reverted to the latest edit from a few weeks ago. Machine was restarted and had crashed a few times in between, but I had auto-save enabled and the lost changes span over multiple weeks, so I definitely did not shut down my machine before the changes could be saved or something like that.
I have no idea what is going on here. I am using a clean Ubuntu installation that does definitely not have installed any kind of automatic backup or versioning software or ransomware, and my SSD is new and healthy.
I have only seen this issue once so far (which is bad enough), so I unfortunately cannot reproduce the issue. I am reporting it anyway because I cannot think of any scenario in which Typora is not related to this issue, so maybe other people are seeing the same thing and are voting it up.
(And yes, I had manual backups, but they were not versioned - until I discovered the loss, the last complete backup of the file was already overwritten.)
Desktop (please complete the following information):
- OS: Ubuntu 24.04
Typora Version e.g: 1.10.7
Possible dup of https://github.com/typora/typora-issues/issues/3107, but this one is Ubuntu/Linux.
Another explanation which I cannot fully rule out would be that something (me assuming another window had the keyboard focus, my cat or anything else) had accidentally pressed Del/Backspace in the editor. Such accidents are not always avoidable, but if Typora could preserve the undo history after reopening a file/restarting the editor, you would be able to fix them later. For instance, I think VS Code does do that. Would you support opening a new issue for this feature?