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
Default Directory does not work #11326
Comments
From what you describe I don’t see a directory you were working in, so the default (= installation folder) is used. Are there some additional steps you perform. I would suspect after changing the settings you need to open at least one file. |
Last used directory is only remembered for the current session. I think @K2AAE is correct and that folder should be saved to config.xml. |
I experimented with this on 8.2.1 and I see the behavior described above. However, on fresh restart of N++, I wanted to make a new PythonScript and when I went to Plugins > PythonScript > New Script and it wanted to create my new file in yesterday's "last directory". :-( I guess not a N++ problem per se, I just found it unusual enough to say something about it. |
I suppose you mean "Last used directory is only remembered for the current session.".
I can't reproduce that. |
Well... in my case something remembered it from yesterday. :-)
I am not brave enough to go there yet. To 8.3.* I mean.
So far I can't go there either, as my 1.5.4 sophisticated setup isn't quite working under 2.0. :-( |
It's certainly not in config.xml.
But in NPP Open/Save it was NOT remembered after restart, correct?
If you don't take the plunge, who would? :) |
Completely off-topic. notepad-plus-plus/PowerEditor/src/NppCommands.cpp Line 1347 in c19033c
Can you think of a reason it's |
Right. My situation is off-topic and not worth pursuing; I just wanted to mention it.
Nope. Seems like you could create some STR a bug and open an issue. |
Thank you. 👍 |
I gave up on Last and Follow, set directory to a folder in Home, shut NPP down and on restart File Save opened in that Home directory instead of the install location. Note: %HOMEPATH% would be the place to open at if nothing is set, the install directory should be write proof by normal users. |
I've never used "Last Used Directory" in real-life. What do you think? |
I have what appears to be a very clean fix to this issue - total diff is only five lines of code. Still testing it, but so far looks good. I may be able to submit a PR later today. |
👍 I really believe that a developer like yourself would be an asset to any project. :) If I can't try your PR tonight, I'll do it tomorrow. |
Set the Default Directory to 'last used directory' then exit, when you open NP++ again then click File/Open it looks in C:\Program Files\Notepad++
I expect it to look in the last directory I was working in NOT the install directory.
The text was updated successfully, but these errors were encountered: