I've downloaded notepad++ and i really like it, however, i found a small, annoying bug in it.
In Total Commander settings, i have notepad++.exe set as default text editor.
1. Let's say i create a new file in Total Commander with shift+F4: d:\file.txt
2. now notepad++ starts with this file in the view (and no other files)
3. I edit my file, then close notepad++.
4. Then i make a new file with shift+F4 in TC: d:\dir\otherfile.txt
5. now notepad++ starts, and asks if i want it to create the file 'd:\otherfile.txt' because it does not exist.
I use Windows XP SP2, Total Commander 6.51, Notepad++ v4.0.2
Please fix this!
Best regards,
Zoltan Kiss
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here's the problem the way I see it. For example, let's create "c:\name.txt".
Total Commander creates the requested file "name.txt" (empty) and then starts Notepad++ with the file path (c:\) as the "current folder" and passing only the file name "name.txt" in parameters.
When Notepad++ starts, it loads the previous session. Whenever it loads a file, it sets its own "current folder" to that of the currently loaded file. Let's say, last time you were editing "c:\MyFiles\hello.txt", so the current directory of the Notepad++ will become "c:\MyFiles".
Then Notepad++ checks the parameter list and sees that it should open a file "name.txt". Since there is no path given, it will try to open the file in the current folder. If there is no such file, it will ask if you would like "c:\MyFiles\name.txt" to be created.
If there is "c:\MyFiles\name.txt", you may end up editing the wrong file, saving it successfully, only to discover that "c:\name.txt" is still empty at a later time. If you were creating the file to write some important notes on a flash drive before leaving to an important meeting, you may come to the meeting and realise that you're screwed. That is particularily possible if you have used a common file name, like "notes.txt" or "readme.txt".
The same issue remains valid even if the Notepad++ is already running when you create the file with Shift+F4.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The same thing is happening for me. Exactly the same setup. And it actually drives me nuts. I'm loosing a lot of files I create, if I'm forgetting to edit that new empty file again.
My observation is that sometimes the file gets created in some other directory, then it was meant to be. So may be there is something wrong with passing file names or something...
Dmitriy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem unless I uncheck the Setting in Preferences under MISC tab for "Remember current session for next launch".
I have also noticed that if you have this setting checked and your previous session included a file whose path included a space (i.e. c:\Documents and Settings\...) then Notepad++ doesn't recognize it as a single path. Treats it as multiple file paths.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I've downloaded notepad++ and i really like it, however, i found a small, annoying bug in it.
In Total Commander settings, i have notepad++.exe set as default text editor.
1. Let's say i create a new file in Total Commander with shift+F4: d:\file.txt
2. now notepad++ starts with this file in the view (and no other files)
3. I edit my file, then close notepad++.
4. Then i make a new file with shift+F4 in TC: d:\dir\otherfile.txt
5. now notepad++ starts, and asks if i want it to create the file 'd:\otherfile.txt' because it does not exist.
I use Windows XP SP2, Total Commander 6.51, Notepad++ v4.0.2
Please fix this!
Best regards,
Zoltan Kiss
Here's the problem the way I see it. For example, let's create "c:\name.txt".
Total Commander creates the requested file "name.txt" (empty) and then starts Notepad++ with the file path (c:\) as the "current folder" and passing only the file name "name.txt" in parameters.
When Notepad++ starts, it loads the previous session. Whenever it loads a file, it sets its own "current folder" to that of the currently loaded file. Let's say, last time you were editing "c:\MyFiles\hello.txt", so the current directory of the Notepad++ will become "c:\MyFiles".
Then Notepad++ checks the parameter list and sees that it should open a file "name.txt". Since there is no path given, it will try to open the file in the current folder. If there is no such file, it will ask if you would like "c:\MyFiles\name.txt" to be created.
If there is "c:\MyFiles\name.txt", you may end up editing the wrong file, saving it successfully, only to discover that "c:\name.txt" is still empty at a later time. If you were creating the file to write some important notes on a flash drive before leaving to an important meeting, you may come to the meeting and realise that you're screwed. That is particularily possible if you have used a common file name, like "notes.txt" or "readme.txt".
The same issue remains valid even if the Notepad++ is already running when you create the file with Shift+F4.
Yes. I also has the same problem.
(WinXP SP2, TC 6.53, NP++ 4.0.2)
The same thing is happening for me. Exactly the same setup. And it actually drives me nuts. I'm loosing a lot of files I create, if I'm forgetting to edit that new empty file again.
My observation is that sometimes the file gets created in some other directory, then it was meant to be. So may be there is something wrong with passing file names or something...
Dmitriy
It's working for me.
(WinXP SP2, TC 7.0RC1, NP++ 4.0.2)
I have the same problem unless I uncheck the Setting in Preferences under MISC tab for "Remember current session for next launch".
I have also noticed that if you have this setting checked and your previous session included a file whose path included a space (i.e. c:\Documents and Settings\...) then Notepad++ doesn't recognize it as a single path. Treats it as multiple file paths.