Community
    • Login

    Rename of current document is not working like expected

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 4 Posters 5.5k 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.
    • IgorT75I Offline
      IgorT75
      last edited by

      I often use Rename functionality (right click on Tab and Rename).
      With current version 7.4.2 it changed it’s behaviour.
      When I rename I expect that it will rename to the same folder. But now it renames to current Notepad’s folder.
      To reproduce:
      Open file, say C:\1.txt (current folder is C:\ now)
      Open other filie, say D:\2.txt (current folder became D:)
      Go to tab with 1.txt open, right click on Tab, choose Rename - it will open you a ‘Save As’ dialog with folder D:\ to save to (not C:).
      I think this is a bug and it wasn’t there in 7.3.3.

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner @IgorT75
        last edited by

        @IgorT75

        My testing of 7.4.2 (32-bit and 64-bit) on Win7 does not bear this out; attempting to follow your steps results in renames into each file’s original folder.

        1 Reply Last reply Reply Quote 0
        • IgorT75I Offline
          IgorT75
          last edited by

          Yeah… I found that it is not reproducable with plugins unloaded. Have to find out which one…

          1 Reply Last reply Reply Quote 0
          • IgorT75I Offline
            IgorT75
            last edited by

            Please disregard my previous post about that it’s not reproducable without plugins.
            It’s still there with or without plugins. 32 bit on Windows 7.
            I also noted that NPP’s current directory changes to the location of just-opened file.

            1 Reply Last reply Reply Quote 0
            • AngryGamerA Offline
              AngryGamer
              last edited by

              I can’t replicate the problem. Does the issue happen with and without Multi-line enabled (when multiple rows)?

              Notepad++ v7.4.2 (32-bit)
              Build time : Jun 18 2017 - 19:15:58
              Path : C:\Program Files (x86)\Notepad++\notepad++.exe
              Admin mode : OFF
              Local Conf mode : OFF
              OS : Windows 10 (64-bit)
              Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppTextFX.dll PluginManager.dll

              1 Reply Last reply Reply Quote 0
              • IgorT75I Offline
                IgorT75
                last edited by IgorT75

                Notepad++ v7.4.2 (32-bit)
                Build time : Jun 18 2017 - 23:34:19
                Path : C:\Program Files (x86)\Notepad++\notepad++.exe
                Admin mode : ON
                Local Conf mode : OFF
                OS : Windows 7 (64-bit)
                Plugins : none
                Multi-Editing settings is OFF (if that what you meant saying Multi-line).
                Reproducable both with and without plugins.

                I actually found that when I’m just selecting document’s path in Open File dialog it changes Notepad++'s current folder on the fly.
                Example: In Open File dialog I navigate to D:\ folder w/o opening any document - ProcessExplorer shows that NPP’s current folder is D:, then I go to C:\ - current folder changes to C:\ and so on.

                When I navigate to another tab current folder stays the same.
                And Rename functionality tries to rename to the current folder which is different for another Tab.

                This is very weird…

                1 Reply Last reply Reply Quote 0
                • DP010042D Offline
                  DP010042
                  last edited by

                  What is selected for Default Directory (Open/Save) in Settings > Preferences > Default Directory?

                  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