Whew. Panic over. I managed to recover my work. Let's hear it for file history in IDEs. Back up time.
Searching