• Login
Community
  • Login

Rename of current document is not working like expected

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 4.9k 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.
  • I
    IgorT75
    last edited by Jun 28, 2017, 5:08 PM

    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.

    S 1 Reply Last reply Jun 28, 2017, 6:08 PM Reply Quote 0
    • S
      Scott Sumner @IgorT75
      last edited by Jun 28, 2017, 6:08 PM

      @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
      • I
        IgorT75
        last edited by Jun 28, 2017, 11:25 PM

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

        1 Reply Last reply Reply Quote 0
        • I
          IgorT75
          last edited by Jun 28, 2017, 11:51 PM

          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
          • A
            AngryGamer
            last edited by Jun 29, 2017, 4:23 AM

            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
            • I
              IgorT75
              last edited by IgorT75 Jul 5, 2017, 9:14 PM Jul 5, 2017, 9:11 PM

              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
              • D
                DP010042
                last edited by Jul 17, 2017, 11:36 PM

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

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