Just inadvertently reproduced this issue. Editing a file, press Command-Delete to erase
back to beginning of the line—a file is deleted instead. Focus is in the text area, not
the file browser.
Something of interest: The file that gets deleted isn’t necessarily the file that’s open,
nor is it the file browser’s selection. Instead, each time I place back the file from the
trash, and then trigger the bug again, the next file up in the list gets deleted instead.
(i.e., the one that comes alphabetically before the previously deleted file is now what
gets deleted, even after replacing back from the trash by dragging into TextMate.)
On 7 Mar ’21, at 3:46 PM, Walter Lee Davis via
TextMate <textmate(a)lists.macromates.com> wrote:
Twice this afternoon I have inadvertently deleted the current file I am editing.
0. I am using Mac OS 10.15.7 with all available updates.
1. I am in 2.0.19
2. I am editing an existing, previously-saved SCSS file in a Rails project
3. I have used the keyboard shortcut Command Delete to delete all text on the current
4. There were previously two spaces on the line (not sure if this is important)
When I hit this combination of keys, I hear the Trash sound, and the file I am editing
disappears from the file list in the sidebar. It does not join its peers in the Git
deleted state (there are other files I have previously deleted in the same folder,
awaiting their ultimate fate of having that delete committed.
Luckily, the file is still open and focused in the editor's buffer when I do that, so
simply saving restores the file where it was. If I were listening to a podcast or similar,
this could have gotten ugly.
I am in 2.0.19 -- I triple-checked. The sidebar file list is in no manner of speaking in
"focus" when this happens, my text cursor is blinking at the insertion point
where I expect to delete-leftwards.
Please let me know if there are any commands I can run while the editor is in this state
that might give you further insight into this issue. I'm gonna keep editing for now
until I hear from you (fingers crossed) and then I'm gonna restart the whole Mac to be
TextMate mailing list -- textmate(a)lists.macromates.com
To unsubscribe send an email to textmate-leave(a)lists.macromates.com