Community
    • Login

    Enable session snapshot and periodic backup?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 6 Posters 1.6k 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.
    • qcybbQ
      qcybb
      last edited by

      How come it’s not possible to enable “Enable session snapshot and periodic backup” and disable “Remember current session for next launch”?

      It would be really nice if those 2 options were not connected.

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

        @qcybb see here how to make a feature request at github repo.

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

          So here is a summary of what the OP means:

          You either have:

          cffb9169-c620-495a-80b9-16fef620e709-image.png

          Or you have:

          257adc7d-7213-416a-a76b-0c3e2169c213-image.png

          Or even:

          59dec203-98e2-4852-af61-79b3b435e0fb-image.png

          Enable session snapshot… seems to be the one that lets you exit and keep your files as unsaved (red disk icons on the tabs).
          Maybe with that context it makes sense that you’d want to Remember current session… as well; otherwise, wouldn’t your unsaved changes be, well, hard for N++ to keep track of?

          Michael VincentM 1 Reply Last reply Reply Quote 4
          • Michael VincentM
            Michael Vincent @Alan Kilborn
            last edited by

            @Alan-Kilborn said in Enable session snapshot and periodic backup?:

            Maybe with that context it makes sense that you’d want to Remember current session… as well; otherwise, wouldn’t your unsaved changes be, well, hard for N++ to keep track of?

            Agree, not looking at the code, but just interpreting what that settings seem to mean, “Enable session snapshot and periodic backup” seems like a subset of “Remember current session for next launch”.

            Again, without looking at the code, I believe “Remember current session for next launch” saves the current session on Notepad++ exit, whereas “Enable session snapshot and periodic backup” saves the current session on the time interface specified and at Notepad++ exit. In that respect, it’s more like a background auto-save in case of a “crash”?

            Cheers.

            1 Reply Last reply Reply Quote 3
            • gstaviG
              gstavi
              last edited by

              @qcybb
              These options are tightly connected and dependent.

              Enable session snapshot and periodic backup is not a very good name because it describes how the feature is implemented rather than its goal. I would name it Remember file modifications. One method to remember file modifications is to periodically make backups of them in a session snapshot.

              So basically a user has 3 choice for how he wants Notepad++ to start

              • Empty.
              • With all files that were open when Notepad++ closed, as they are saved on disk.
                • On Notepad++ close user must decide about modified files – save or lose.
                • On restart: deleted file will not appear.
                • Files that were modified by other application will have their new content.
              • With all files that were open when Notepad++ closed including modifications and new files.
                • I don’t use this so I am not sure what the behavior is.
                • On Notepad++ close do not ask user anything – everything is “remembered”.
                • On restart: deleted file? Does not appear? Appear as red tab?
                • Files that were modified by other application??? Old content? New content? Merged content?

              The user interface exposes these 3 options in a very reasonable way. Option 3 is by definition an extension to option 2.

              In my opinion option 3 is meant to satisfy lazy people that are always surprised at some point when they lose 3 weeks work that they never explicitly saved.
              As I demonstrated, there are quite a few tricky corner cases with this approach that are bound to surprise users when they first encounter them.

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

                @gstavi said in Enable session snapshot and periodic backup?:

                In my opinion option 3 is meant to satisfy lazy people that are always surprised at some point when they lose 3 weeks work that they never explicitly saved.

                Also generates a nasty surprise when the “NUL problem” strikes.

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

                  Some more info on how the features under discussion work may be found HERE.

                  1 Reply Last reply Reply Quote 1
                  • I.zi.biaI
                    I.zi.bia
                    last edited by

                    @Michael-Vincent said in Enable session snapshot and periodic backup?:

                    Again, without looking at the code, I believe “Remember current session for next launch” saves the current session on Notepad++ exit, whereas “Enable session snapshot and periodic backup” saves the current session on the time interface specified and at Notepad++ exit. In that respect, it’s more like a background auto-save in case of a “crash”?

                    I have run some tests with npp v8.4.8, and my observations are different:

                    “Enable session snapshot and periodic backup” only enables periodic snapshot. It has nothing common neither with sessions nor with config: I tried to kill notepad++.exe and I noticed no changes of config.xml and session.xml.

                    Remember current session for next launch has two effects

                    1. it allows that session.xml is (re)written on npp close
                    2. it allows that session.xml is loaded on next startup of npp
                      (of course, 1. and 2. happens only if all conditions are met.)

                    (Unchecking Remember current session for next launch doesn’t delete existing session.xml, and so it may6 be activated later by config.xml edit)

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