This cat just stood on what turns out to be a poorly placed power button on top of my PC, turning the machine off... and deleting a whole bunch of interview quotes I'd spent the last two hours transcribing in the process.

No, I don't know why I hadn't clicked save in that time either.

Regularly backup your data, kids!

@dannyjpalmer forgive me if you aren’t looking for advice but if you want, you can make the power button do nothing while the machine is turned on.

In settings: Power Options > Choose what the power button does > Nothing

If the machine is off, the power button will turn it on, but then the button will be ignored while on.

@arcadus @dannyjpalmer, which desktop environment is that for?

The one setting which I specifically hate is instant-off. Fortunately, there are usually BIOS/UEFI settings for that.