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 line, left-wise. 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 certain.
Walter