asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.86k stars 297 forks source link

AsciidocFX 1.8.6 deleted the content of files - and save them #611

Open manueljordan opened 7 months ago

manueljordan commented 7 months ago

Not sure how the following situation happened but was a disaster.

AsciidocFX 1.8.6 deleted the content of files.

More details in:

I can't reproduce this.

rahmanusta commented 7 months ago

Sorry, that happened. We should bring some history mechanism for files that users can revert to any point in the history of the file.

manueljordan commented 7 months ago

Something I did do realize is that It has by default autosave, it is really dangerous. I mean, it does not have the default behavior that if the file is edited and is attempt to close it then appears a dialog window to confirm or cancel the changes. Therefore currently the editor never show that expected dialog window, simply it saves and closes the file.

life888888 commented 7 months ago

I also encountered the problem of clearing files.

My situation is:

I use AsciidocFX to open a xxx.adoc At the same time, I also used gedit to open the same xxx.adoc file

But gedit pops up that xxx.adoc has been modified externally. Do you want to reload it? The problem is, I didn't edit xxx.adoc in AsciidocFX.

Then I selected to reload in gedit and found that the reloaded xxx.adoc became empty.