On 29 Oct 2021, at 18:38, Greg via TextMate wrote:

But if I save a Ruby file, it’s as if Cmd-A, Cmd-X is run first. Cmd-Z brings it all back. Doesn’t matter whether I use Cmd-S or File>Save

Most likely you have a broken command running on callback.document.will/did-save. With a ruby file open use ⌃⌘T and switch to “Semantic Class” via the gear menu and then enter “save” to see if anything is being run on save.

Broken here could be a problem with the command source, the bundle item, or perhaps the bundle index, the latter can be rebuilt by first removing it and relaunching TextMate:

rm ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary