Community
    • Login

    Feature/improvement suggestion

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 153 Views 2 Watching
    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.
    • A Offline
      Adam Narkiewicz
      last edited by

      I often do following steps:

      1. Open multiple files from HDD in Notepad++ and work on them.
      2. Upload the files to the server.
      3. Delete the files from my HDD while they are still open in Notepad++.
      4. Do File->Close All in Notepad++.
      5. Then I receive a prompt: “The file XYZ doesn’t exist anymore. Keep this file in editor?” To see what happens, I click “Yes.”
      6. All files get closed.

      There are two problems here:

      1. After asking whether to keep a file in the editor, Notepad++ closes it no matter what my answer is.
      2. After selecting “Close All” Notepad++ asks me whether to keep some deleted files open, but not all (e.g. I have four files open, all of them deleted and I get only one such question).

      This is not particularly annoying but I thought I would share it here because it seems there are some flaws in the application logic.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Adam Narkiewicz
        last edited by

        @Adam-Narkiewicz ,

        (sorry for the slow reply: when I first read your post, I was in the middle of something, and couldn’t go looking for the issues, so I hoped that someone else would reply with similar information. Since no one has, I am doing it now.)

        Honestly, I believe the bug is in step 5: it shouldn’t do that “check for underlying file existence” when you tell it to Close All (or when just closing one file, as in Issue #11866; or when you tell it to reload a file, as in Issue #18718). The developer tried (per this comment) to find a way around this, but hasn’t found a viable solution yet.

        After asking whether to keep a file in the editor, Notepad++ closes it no matter what my answer is.

        For me, since you already said “close all”, I don’t see a problem in Notepad++ closing it. I am not convinced it should’ve asked in the first place.

        Fortunately, if there are unsaved changes – so if you’ve edited the file, so there are unsaved changes to the file that doesn’t exist anymore – it will interrupt the process and ask you to save it, and when it fails, it stops the process (not the best solution, but better than losing data). So this oddity at least won’t let you lose unsaved changes accidentally when doing Close All for files that have disappeared. So that’s something.

        asks me whether to keep some deleted files open, but not all

        That does seem problematic, to me. I guess after doing the single check, it finally believes your request to Close All meant to Close All.


        In conclusion: Since Issue #11866 exists for the single file-close, I don’t think this needs a separate official issue. I’m glad it’s “not particularly annoying” to you, because it could be a long time (if ever) before a solution can be found.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors