Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Rename of current document is not working like expected

    General Discussion
    4
    7
    3098
    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.
    • IgorT75
      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 Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        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
        • IgorT75
          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
          • IgorT75
            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
            • AngryGamer
              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
              • IgorT75
                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
                • DP010042
                  DP010042 last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors