Rename of current document is not working like expected



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



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



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



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



  • 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



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



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


Log in to reply