I found a bug and I can reliably reproduce it.
If I edit a typst document in my mobile Firefox (Android) with enabled vim mode and I just press i to insert something, the document gets emptied.
If you are having this problem:
Please use the undo from the menu and then leave the document. Otherwise you might lose data.
I found out the hard way.
I would like to dive deeper into this bug. Does someone have the same problem?
Steps to reproduce:
- create a new project, as data might get deleted forever
- fill the main.typ with some text
- save by leaving the project
- use Firefox mobile to open the project and try to edit main.typ by pressing
ifor insert in the vim mode - notice that a lot of text or all text is gone