Community
    • Login

    WTF just happened to my textfile?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 2.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Systema SephiroticumS Offline
      Systema Sephiroticum
      last edited by

      I’ve been using NP++ for years and am really confused. I had a quite important file with some changes that I had not yet saved. I apparently hit some hotkey and a modal came up that ended with “CANNOT be undone!!”, however I fucked up and hit enter. The tab was closed and now the file is totally empty. I have no idea WTF just happened. What godforsaken hotkey did I hit and how do I avoid this ever happening again?

      1 Reply Last reply Reply Quote 0
      • Systema SephiroticumS Offline
        Systema Sephiroticum
        last edited by Systema Sephiroticum

        Uhhh… sorry for the fast update but the file apparently still has all its contents, the problem was that notepad++ was displaying the file as empty when reopened several times over, even though it retained its original filesize and would appear populated when I open it in standard vanilla windows notepad. Opening it again in notepad++ several minutes later, the contents are all there.

        I’m super relieved but also even more confused than I was before.

        1 Reply Last reply Reply Quote 0
        • gstaviG Offline
          gstavi
          last edited by

          A message I am aware of with CANNOT be undone relates to changing Character Set in Encoding menu. But there is no default shortcut for this.
          If your text contained non-English symbols then I guess that changing into “wrong” language could cause weird things.
          Some apps, when loading a file, may stop at specific byte sequences that mark (intentionally or by mistake) “end of file” but I was under the impression that Notepad++ is not one of them.
          When Notepad++ does open the “empty” file what does it show for encoding/codepage in the status line?

          1 Reply Last reply Reply Quote 1
          • Systema SephiroticumS Offline
            Systema Sephiroticum
            last edited by

            I’m pretty sure that’s the modal I saw. I didn’t have any non-english characters in there. NP++ is opening the file properly now, however it still loaded it as blank several times for a few minutes afterwards before loading it properly. The file didn’t change in that timeframe, nor did I restart NP++.

            Looks like the file is still UTF-8, so the encoding didn’t change. I’m really wondering what I did to the file to make NP++ temporarily choke w/ it.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors