[ Huge rant incoming. ]
So since windows 11, Notepad now has this very useful and intuitive new tabs feature.
Some very funny things to note:
-
Clicking the big red X in the top right that screams "click me to close" doesn't close your tab.
-
Just viewing a file creates a tab, that needs to be manually closed before closing the window.
-
If you open a file you already opened, it will create a new tab every time. So for example if you have a password file and you just looked at the (same) file 27 times to remember a password, this will create 27 tabs.
-
Each tab is a seperate copy of that file. It's really it's own instance, not just a reference or a history feature.
Here's what happened:
I do a lot of savegame editing/modding. If possible I almost always use notepad for this. It's not like I always know exactly what I am looking for and so often times it can be that I open 20 different files before I finally find what I am looking for. As said this will store 20 copies/tabs of these files in notepad.
Lately I was trying to do this for this game (ck3) that stores almost all the info for a savegame into these files. It's a management/strategy game so there's a ton of data stored into one single file. These files were thus really laggy and took an insane time to open. Like always I did some messing around and inspecting to get a feel for how the game works, what it stores and what was possible, all using notepad. By the time I was done I had like 60+ tabs just from opening some files. Even just closing notepad took a while by this point.
As said this was making it really laggy and it didn't seem like a good idea to store all these large tabs, so I decided to remove all the tabs in the hopes it wouldn't take ages to open a file anymore. Doing it one by one seemed too tedious so I just right-clicked on the tabs and selected "remove other tabs". This wasn't much of a help either since it would just do them one by one and prompt me to "save" or "don't save" every time. Like I said they were pretty large files that take like 5-10 mins to open and close. So it would be 5-10 mins wait, prompt, click, wait again, prompt. It would only move onto the next one after I made the choice... I have a pretty beefy pc so seeing it only use a fraction of the available resources, instead of doing them all at once, was pretty horrendous.
Anyway I knew that the problem was the prompt to save so I stopped the process and just decided to save everything, so it wouldn't prompt me each time. I know I always save my files anyway and the ones that were not saved were these large test files that were causing the problem anyway. Notepad (like many apps) has this dot next to each file you have unsaved changes to. So naturally when I hit save all it would save were my unsaved changes right? right??
IT
SAVED
EVERYTHING
Every file I had ever opened even once with notepad was reverted to it's state when I last opened it!
This dot didn't mean anything. I am talking about game files, save files so many save files, logs from my programming that I inspected once with notepad but were edited after using code, all got overwritten by an older version/copy of itself. That's talking about the stuff I know off, who knows what damage I've done to all these dozen of files I've just opened and closed once. I have no clue what files they even are...
WHO IN THEIR RIGHT MIND EVEN MADE THIS STUFF? I mean sure if it was something like "Vim" or the command line I used to edit my files, then sure it would've been my fault. But this is the same thing that my grandma would use to edit her files. How can the simplest of apps be made to cause this much damage??
I know this is not a tech support subreddit and the focus is on the rant, but the following things would help a lot:
-
Do these save operations get logged anywhere, so I can see what tasks notepad issued and the files affected?
-
I've not shut down my pc yet, is there any way to restore to before this all happened or retrieve the changes?