Community
    • 登入

    Reopen Notepad++ after update, restart or shutdown Windows 10 from where I was

    已排程 已置頂 已鎖定 已移動 General Discussion
    25 貼文 10 Posters 6.1k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Alan KilbornA
      Alan Kilborn @Greg Parrott
      最後由 編輯

      @Greg-Parrott

      You are perhaps living dangerously with this workflow. If I were you, I would name and save files to disk yourself, and then have a separate backup mechanism that doesn’t involve Notepad++.

      1 條回覆 最後回覆 回覆 引用 2
      • Andrue CopeA
        Andrue Cope @Ekopalypse
        最後由 編輯

        @Ekopalypse It did the same thing. This time though I re-opened my file and it was there when I launched NPP this morning. I usually only give Windows half a minute to shut down then force shut down so I’m guessing that this is what’s tripping me up.

        Whether fixing the prompt handling would also fix my typical scenario I don’t know. Possibly not.

        EkopalypseE 1 條回覆 最後回覆 回覆 引用 0
        • EkopalypseE
          Ekopalypse @Andrue Cope
          最後由 編輯

          @Andrue-Cope

          Half a minute should be more than enough for an app to save its settings but …
          I only have win10 in a VM so it isn’t that convinient to do testing on this
          and digging through the code didn’t reveal anything obvious.
          Just while writing this I think it might be ok to create some tests using
          WM messages only and not restarting the VM always.
          I’ll come back on this.

          1 條回覆 最後回覆 回覆 引用 0
          • S
            Softone_
            最後由 編輯

            I can confirm this as of version 7.9.5.

            This is the scenario:

            • Notepad++ is open and has several open tabs, both named (=saved) and unnamed (new nn) files
            • Windows 10 performs an automated reboot as part of a bigger update overnight
            • After logging in, Notepad++ session is lost
            • unnamed files can be found on the backup dir, but there is no trace of what saved files were open

            Notepad++ can remember the session if I manually reboot the win10.

            Would it make sense to backup the complete session information also every time the backup is performed?

            Thanks,

            Joe HalleckJ 1 條回覆 最後回覆 回覆 引用 0
            • Joe HalleckJ
              Joe Halleck @Softone_
              最後由 編輯

              @Softone_
              Same issue here with latest version of Windows 10 and Notepad++
              I opened an issue with my build details.
              https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9850

              1 條回覆 最後回覆 回覆 引用 2
              • 第一個貼文
                最後的貼文
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors