hundredrabbits / Left

Distractionless Writing Tool
http://hundredrabbits.itch.io/left
Other
1.77k stars 142 forks source link

Added default path functionality for open and save-as dialogues #154

Open sdrwtf opened 3 years ago

sdrwtf commented 3 years ago

I found it a bit annoying that the Open and Save-As dialog always starts in the Left install directory, I don't think that is where most people will put their files. So I implemented a small function which sets the default path for the dialog if possible.

The idea is that it is likely that a page that is to be opened is probably located near an already opened page in the file system, vice versa a new page that is to be saved will probably be stored near an already saved page.

I tested this on a Linux system, unfortunately I have no way to test it on OSX or Windows at the moment.