On 23 Feb 2021, at 8:22, Paulo Moura via TextMate wrote:
Just lost two hours of work due to this bug.
Seconded. Critical issue. When the undo buffer becomes exhausted in whatever text file you're editing, Cmd+Z just silently now falls through to the file browser and wreaks havoc.
To others commenting, this is absolutely NOT anything to do with input focus. Focus is in the text editor window, not the file browser. Cmd+Z is undoing text edit changes normally, but if you reach the start of your undo buffer, suddenly it just silently starts hitting the file browser (and as the OP noted, it can even cause hard-deletion of files without going to the Trash).
I've stepped back to my prior "public" non-beta release of 2.0.6 for now as also just lost some work myself - doubtless this'll be fixed soon :-) but for safety right now I've no choice but to regress (it's my primary development editor). Earlier builds can be fetched from https://github.com/textmate/textmate/tags. There seem to be no ill effects, apart from theme settings reverting - unsurprising given the later versions have the dark/light mode switching that's not present in the older code.