Community
    • Login

    "Keep this file in editor?"

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 6 Posters 7.4k 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.
    • Prokop SuchanekP
      Prokop Suchanek
      last edited by

      Hi!

      I love notepad++. I use it in conjunction with WinSCP. I work 20+ files simultaneously often. When I come back from hibernation, the FTP session has timed out and I get 20+ of these dialog boxes saying that the file doesn’t exist anymore.

      I looked, but can’t find how to tell Notepad++ to always “yes” or always “no” to this.

      example

      Claudia FrankC PeterJonesP 2 Replies Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Prokop Suchanek
        last edited by

        Hello @Prokop-Suchanek,

        there isn’t such feature. Unfortunately it is something which cannot be easily solved.
        Not sure if this helps you but the only thing you can do is to disable file status detection.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Jim Robinson118J
          Jim Robinson118
          last edited by

          I agree with this, it is extremely annoying. I often view temporary files from other applications, which are then deleted. Then switching to notepad++ gives the dialog.

          I’m not sure why it would be hard to sort out, just don’t ask the question and keep the file.

          Or probably better to make it an option to either keep the file, don’t keep the file, or ask each time.

          Jim

          1 Reply Last reply Reply Quote 1
          • ?
            A Former User
            last edited by

            This wouldn’t be difficult to create some configurability for.
            Here is what I am thinking and how I think it would solve this issue for everyone.

            A 3 option Radio, in the settings that contains the following:

            1. Ask how to treat files that have changed or are missing. (Default)
            2. Don’t Ask and keep the file open. (This makes the tab icon red.)
            3. Don’t ask and close the missing or changed file.

            This is just an immediate idea to set people on the right track for how this can work, and can obviously have more options than the ones I listed.

            For those who are stumbling onto this topic looking for a solution,
            I ask you to comment here as well to at least show that this is something you would like seen changed and show support for an amazing editor.

            1 Reply Last reply Reply Quote 0
            • Sebastian LaufferS
              Sebastian Lauffer
              last edited by

              ; Workaround written in AHK for windows user:

              SetTitleMatchMode,2
              while(true){
              WinGetActiveTitle,at
              IfWinActive,ahk_class Notepad++,Keep this file in editor?
              send,n
              WinWaitNotActive,% at
              }

              1 Reply Last reply Reply Quote 1
              • Sebastian LaufferS
                Sebastian Lauffer
                last edited by

                ; Workaround written in AHK for windows user:

                SetTitleMatchMode,2
                while(true){
                WinGetActiveTitle,at
                ; wrong IfWinActive,ahk_class Notepad++,Keep this file in editor?
                IfWinActive,Keep non existing file ahk_class #32770
                WinClose,
                WinWaitNotActive,% at
                }

                1 Reply Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Prokop Suchanek
                  last edited by PeterJones

                  I know I am resurrecting an ancient topic, but since a 2021 topic referred back to this thread, I thought I would correct a misunderstanding from this thread, which hadn’t been addressed.

                  I checked Notepad++ v6.6.6 from June 2014 (two years before this thread), Notepad++ v7.0 (from Sep 2016, a few months after this thread), and the most-recent Notepad++ v7.9.5 from March 2021, and all three have this feature: specifically, there is a way to turn off that dialog.

                  Settings > Preferences > MISC > File Status Auto-Detection, and select Disable in the drop down (or uncheck Enable’s checkbox in v6.6.6). Once that’s disabled, Notepad++ will no longer poll the filesystem, looking for either file deletions or for updates to the file, and you won’t be prompted again. With the Auto-Detection disabled, I do not see the “This file has been modified by another program” dialog, and disabling that option also eliminated the “This file … doesn’t exist anymore”, which this topic was complaining about.

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