-
Notifications
You must be signed in to change notification settings - Fork 68
Description
This issue stems from the discussion on the forum: https://community.notepad-plus-plus.org/topic/27270/set-current-directory-to-default-if-no-real-file-is-open
I'd like to have an API to set the directory that will be used on the next launch of the "Open File" or "Save File" dialog. This should overwrite the value that is internally tracked and set by Notepad++ because e.g. of the setting "Default Open/Save file Directory".
This should allow for me to better handle the following situation:
- The setting "Default Open/Save file Directory" is set to "Follow current document"
- I have a tab with new contents (not yet saved as a file)
- In another tab, I have a file from a network folder, which is the active tab now.
- I close the tab with the network file. Only the untitled tab remains
- Now I want to save this untitled tab to a "standard" folder. The standard folder is the one used after Notepad++ is started without any files. It's "Desktop" for me.
As of now, when I press Ctrl+S in the step 5, the dialog opens in the network directory. I'd like it to open in the "Standard" directory. But this should only be for untitled tabs. For real files, the dialog should still open in the directory of the file.
Disclaimer: I also submitted this as an issue in Notepad++ for the case that this feature is better implemented there.