"Keep this file in editor?"



  • 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



  • 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



  • 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



  • 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.



  • ; 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
    }



  • ; 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
    }


Log in to reply