Community
    • Login

    Detect external changes tweak

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 413 Views
    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.
    • blahblahblah blahblahB
      blahblahblah blahblah
      last edited by

      N++ is great at detecting external change to a document being edited, when you switch to N++ from another app. It says if the document has been changed, offers to reload it, and lets you know if you have typed anything that would be lost.
      But none of this happens if you are in N++ editing that document and don’t switch away.
      eg. start editing abc.txt, type various things, meanwhile some other app makes changes to abc.txt, then you eventually get around to pressing save. Your changes are saved ok, but whatever the other app added is lost.
      If, before pressing save, you had switched away from N++ then back, you would have been informed of what was about to happen.
      To me it seems easily solved. Make a note of the timestamp of the file as its opened. When you press save, check the timestamp hasn’t changed and if it has, inform the user so once again, they can choose to reload/lose their changes etc.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @blahblahblah blahblah
        last edited by

        @blahblahblah-blahblah

        Sounds like a feature request to me.

        1 Reply Last reply Reply Quote 1
        • Alan KilbornA
          Alan Kilborn
          last edited by

          Sounds like a scary scenario to me.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors