You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
When I want to save a document or export it to HTML, the app shows me the app directory, which I would never use for document storage.
It does this on Windows, I don't know about the other platforms.
IMHO it should propose to save in the user profile directory or its Documents directory if it exists.
And for export, the same location as the document if it was saved. If not, fall back on the previous proposition.
It bothers me especially when I do multiple exports and have to select the right path every time.
Also, the save dialog should remember the previous location that the user chose.
I don't know if it's possible though, I should check the documentation.
The text was updated successfully, but these errors were encountered:
Actually right now we use the working directory as the default dir, so it depends on the way you launch the app (menu, explorer, command line, opening a file...) and probably behavior differs a bit from an OS to another.
I agree it would be a good idea to 1) default to app.getPath("documents") (doc here) 2) remember previous save/load/export locations.
Yes. But I just thought about using process.chdir() each time a document is saved, loaded or exported, which would probably do the job. I need to look into this to see what is the best.
I think changing the current directory on save would be cheaper and easier to maintain.
For example, what would happen if I clear my "Recent docs" entries?
I didn't know about app.getPath(), this is really cool.
When I want to save a document or export it to HTML, the app shows me the app directory, which I would never use for document storage.
It does this on Windows, I don't know about the other platforms.
IMHO it should propose to save in the user profile directory or its
Documents
directory if it exists.And for export, the same location as the document if it was saved. If not, fall back on the previous proposition.
It bothers me especially when I do multiple exports and have to select the right path every time.
Also, the save dialog should remember the previous location that the user chose.
I don't know if it's possible though, I should check the documentation.
The text was updated successfully, but these errors were encountered: