Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Detect external changes tweak

    General Discussion
    3
    3
    123
    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 blahblah
      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.

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

        @blahblahblah-blahblah

        Sounds like a feature request to me.

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

          Sounds like a scary scenario to me.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors