Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] renaming document tab to same name as a folder in the notepad++ folder #15638

Closed
1 task done
MGB-Hadean opened this issue Sep 19, 2024 · 8 comments
Closed
1 task done

Comments

@MGB-Hadean
Copy link

MGB-Hadean commented Sep 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

If you rename a document tab to the same name as a folder in the notepad++ folder then close and re-open notepad++, it tries to open all files in that folder.

Steps To Reproduce

  1. open notepad++
  2. create a new tab
  3. RMB and rename the new tab to eg plugins (or the same name as any folder in the notepad++ folder)
  4. exit notepad++
  5. restart notepad++

Current Behavior

Notepad tries to open all files in the local folder with the tab name (ie notepad++/plugins/).

Expected Behavior

Expected the new document to be saved on exit and re-opened on restart.

Debug Information

Notepad++ v8.6.9   (64-bit)
Build time : Jul 12 2024 - 05:09:25
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 11 Pro (64-bit)
OS Version : 23H2
OS Build : 22635.3139
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

No response

@xomx
Copy link
Contributor

xomx commented Sep 19, 2024

This problem should be already fixed in the latest v8.7 by the 0858dfa .

This is a prime example of why was important to fix the issue #14839 .

@donho
Copy link
Member

donho commented Sep 19, 2024

I confirm what he said @xomx
The bug is fixed in the latest version of Notepad++ (v8.7).

@donho donho closed this as completed Sep 19, 2024
@MGB-Hadean
Copy link
Author

Nice 🥳
Thought I was going crazy losing notes I'd made.

@MGB-Hadean
Copy link
Author

Hmm now if the filename matches a folder name in the Notepad folder it just disappears on exit/restart.
Will raise another bug...

@xomx
Copy link
Contributor

xomx commented Oct 4, 2024

@MGB-Hadean

if the filename matches a folder name

Mission impossible. This is not a N++ problem, the OS itself is not allowing such a thing. Otherwise, imagine how the OS would distinguish whether you want to work with a file or a folder located in the same directory... Its not only Windows thing - e.g. in UNIX a folder is just a special case of a file.

@MGB-Hadean
Copy link
Author

Sorry terminology fail. To be clear: 'filename' above == what I rename the tab to in N++.

@alankilborn
Copy link
Contributor

@MGB-Hadean

If I do this:

  • open notepad++ 8.7
  • create a new tab
  • right-mouse-button and rename the new tab to themes
  • exit notepad++
  • restart notepad++

Then there is no incorrect behavior; after the restart the themes tab is present:

image

@MGB-Hadean
Copy link
Author

OMG, I probably didn't edit the new tab doc and Npp just got rid 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@donho @xomx @alankilborn @MGB-Hadean and others