Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Change default paths for Save and Export #129

Closed
darahak opened this issue Nov 10, 2016 · 4 comments
Closed

Change default paths for Save and Export #129

darahak opened this issue Nov 10, 2016 · 4 comments

Comments

@darahak
Copy link
Contributor

darahak commented Nov 10, 2016

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.

@brrd
Copy link
Owner

brrd commented Nov 10, 2016

An idea: we could use the recent docs (see #92) to store and retrieve this path.

@nloveladyallen
Copy link
Contributor

Really? I get the root directory on macOS (which I also would never use for document storage).

For remembering the last directory, see #92.

@brrd
Copy link
Owner

brrd commented Nov 10, 2016

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.

For remembering the last directory, see #92.

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.

@darahak
Copy link
Contributor Author

darahak commented Nov 15, 2016

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants