On 3 Mar 2021, at 8:23, Jack Royal-Gordon via TextMate wrote:

tl;dr Command-Z and Shift-Command-Z somehow stopped being associated with Undo/Redo, and instead caused the last file functions to be undone/redone (renaming a file, creating a file, creating a folder, etc.). Note that the menu still indicates those two keys as shortcuts to Undo/Redo

Yes, it happens when there are no longer any undo/redo steps left in the text view - the shortcuts were dropping through to the file browser.

Happily yhis was fixed in v2.0.19, so check for updates :-)

-- 
TTFN, Andrew Hodgkinson
Find photos, software, music and more at my home site, Bandcamp and GitHub:
https://pond.org.uk / https://pondnz.bandcamp.com / https://github.com/pond