It's the intended behaviour.
The current working directory follows the current document - so if it's a new document, the current working directory will be your Notepad++ directory.
Don
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Adding another vote that not remembering the directory I'm working in will force me to find another editor due to the volume of files I'm typically working on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If it's intended, it's very annoying. The behaviour in older versions was much nicer.
If I create several new files, it's reasonable to assume that I'll want to save them to the same place. Tracking the current document is only useful when using "Save As", which is going to be far less often than saving a new document.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>Yes, but it solves the problem of deleting the
>directory "c:\folder\" after closing the file "c:
>\folder\file.txt"
If the user deleted c:\folder, then npp can suggest as default directory another one, but if c:\folder exists, it should be used.
I can live with the problem of deleting c:\folder. I find more annoying using always npp directory. Because this I keep using a previous version of npp.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can change the "Start in" path of the shortcut you use to the place you want to save files to by default. Not really a full solution, but it's much less annoying.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Those two links do not work (even if you edit them)
But I don't understand what the problem could be? If there is a reference to a deleted folder, then just strip the folder from the path and try the new path, continue until there is such a directory or you have reached the root of the drive.
I find it annoying as well, though if you introduce the "Favorite" menu it will be much less so.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Count me in for those who will uninstall and reinstall an older version instead. I can't live with it always defaulting to the notepad++ directory. This even happens when I open a file. Considering how many times I open files throughout the day, having to renavigate directories is a lot of wasted time and clicking.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It doesn't bother me because Total Commander is how I manage all paths. Microsoft would need to buy Total Commander and make it the common control for Open and Save dialog boxes before I would switch.
The solution is for N++ to remember the "current path" in a string rather than allowing GetCurrentDirectory/SetCurrentDirectory to handle it. Leaving the real current directory set to it's last used path was interfering with deleting folders and ejecting flash drives.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you LOAD a file, Editors seem to either
a) remembers the last-loaded directory,
or
b) Take the active file's directory (Npp does this)
- so there is 'user context' on load.
All the other editors I've just tested (except NP++3.6), mirror that 'user context' behaviour on New.SaveAs - they consider the most recent directory the 'most sensible' starting point.
So my vote says this default to the Npp EXE dir, is counter-intuitive, and should be added to the preferences....
As a workaround, if you already have a file open in the Directory you want to save to, you can use the (nice) "FullFilePath to Clipboard" feature
and drop that into the Save dialog... ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PLEASE fix this. As a temporary workaround, I saved a short cut in the Notepad++ directory to take me to my work directory. While my workaround solves the problem, the extra keystrokes/mouse clicks will eventually force me to look for another editor.
PFE handled this in a nice way. From the "File" menu, there was a "Change to File Directory" option that would reset the save path.
Thanks for all you do.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Couple of other workarounds:
Take any open file in desired directory, then either of these sequences :
a) right click to FullPath to Clipboard.
b) File.New.SaveAs : Paste Path+TypeName
or
a) save-as any file open, in new directory, and
delete to get clean sheet.
b) reopen from the history list if you want.
or
a) right click to Clone New View, then save-as that view (keeps Path), then delete all for
clean sheet.
I've seen a small quirk/bug in the last one, in that even when the cloned view is RENAMED, NP++ _still_ tries to align the contents, which is a bit disconcerting. Exit/restart shows master file is actually OK, and only the screen was updating...
If BOTH views are edited, (with different names) then it really seems to loose the plot...
Solution suggestion (Don?) : How about adding to Tab.RightClick directory options (which are REAL NICE!), another one to
'Set Dir as NEW default" ?
jmg_
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any way to have Notepad++ remember the last saved document location?
Every time I create a new file and save, Notepad++ directs me to:
C:\Documents and Settings\user\Application Data\Notepad++
This worked just fine in v3.2 but seems not to in v3.5, and I can't find any setting for it :(
It's the intended behaviour.
The current working directory follows the current document - so if it's a new document, the current working directory will be your Notepad++ directory.
Don
Can you atleast make an option in some xml-file to choose another default path?
Intended, maybe, but is it the most /useful/ behaviour?
Adding another vote that not remembering the directory I'm working in will force me to find another editor due to the volume of files I'm typically working on.
i will also switch the use back to 3.2 for the file editing.
i love npp so old version > different product.
For this reason, I have uninstalled 3.5 and gone back to 3.2.
If it's intended, it's very annoying. The behaviour in older versions was much nicer.
If I create several new files, it's reasonable to assume that I'll want to save them to the same place. Tracking the current document is only useful when using "Save As", which is going to be far less often than saving a new document.
That behaviour doesn't seem very intuitive.
Yes, but it solves the problem of deleting the directory "c:\folder\" after closing the file "c:\folder\file.txt"
see:
http://sourceforge.net/tracker/index.php?func=detail&aid=1188666&group_id=95717&atid=612382
and
http://sourceforge.net/tracker/index.php?func=detail&aid=1035056&group_id=95717&atid=612382
Don
>Yes, but it solves the problem of deleting the
>directory "c:\folder\" after closing the file "c:
>\folder\file.txt"
If the user deleted c:\folder, then npp can suggest as default directory another one, but if c:\folder exists, it should be used.
I can live with the problem of deleting c:\folder. I find more annoying using always npp directory. Because this I keep using a previous version of npp.
You can change the "Start in" path of the shortcut you use to the place you want to save files to by default. Not really a full solution, but it's much less annoying.
"Yes, but it solves the problem of deleting the directory "c:\folder\" after closing the file "c:\folder\file.txt"
see:
http://sourceforge.net/tracker/index.php?func=detail&;aid=1188666&group_id=95717&atid=612382
and
http://sourceforge.net/tracker/index.php?func=detail&;aid=1035056&group_id=95717&atid=612382 "
Those two links do not work (even if you edit them)
But I don't understand what the problem could be? If there is a reference to a deleted folder, then just strip the folder from the path and try the new path, continue until there is such a directory or you have reached the root of the drive.
I find it annoying as well, though if you introduce the "Favorite" menu it will be much less so.
Count me in for those who will uninstall and reinstall an older version instead. I can't live with it always defaulting to the notepad++ directory. This even happens when I open a file. Considering how many times I open files throughout the day, having to renavigate directories is a lot of wasted time and clicking.
It doesn't bother me because Total Commander is how I manage all paths. Microsoft would need to buy Total Commander and make it the common control for Open and Save dialog boxes before I would switch.
The solution is for N++ to remember the "current path" in a string rather than allowing GetCurrentDirectory/SetCurrentDirectory to handle it. Leaving the real current directory set to it's last used path was interfering with deleting folders and ejecting flash drives.
Make it optional! How many people use TC to manage their paths? Stop being so myopic!
When you LOAD a file, Editors seem to either
a) remembers the last-loaded directory,
or
b) Take the active file's directory (Npp does this)
- so there is 'user context' on load.
All the other editors I've just tested (except NP++3.6), mirror that 'user context' behaviour on New.SaveAs - they consider the most recent directory the 'most sensible' starting point.
So my vote says this default to the Npp EXE dir, is counter-intuitive, and should be added to the preferences....
As a workaround, if you already have a file open in the Directory you want to save to, you can use the (nice) "FullFilePath to Clipboard" feature
and drop that into the Save dialog... ?
PLEASE fix this. As a temporary workaround, I saved a short cut in the Notepad++ directory to take me to my work directory. While my workaround solves the problem, the extra keystrokes/mouse clicks will eventually force me to look for another editor.
PFE handled this in a nice way. From the "File" menu, there was a "Change to File Directory" option that would reset the save path.
Thanks for all you do.
Couple of other workarounds:
Take any open file in desired directory, then either of these sequences :
a) right click to FullPath to Clipboard.
b) File.New.SaveAs : Paste Path+TypeName
or
a) save-as any file open, in new directory, and
delete to get clean sheet.
b) reopen from the history list if you want.
or
a) right click to Clone New View, then save-as that view (keeps Path), then delete all for
clean sheet.
I've seen a small quirk/bug in the last one, in that even when the cloned view is RENAMED, NP++ _still_ tries to align the contents, which is a bit disconcerting. Exit/restart shows master file is actually OK, and only the screen was updating...
If BOTH views are edited, (with different names) then it really seems to loose the plot...
Solution suggestion (Don?) : How about adding to Tab.RightClick directory options (which are REAL NICE!), another one to
'Set Dir as NEW default" ?
jmg_