-
Notifications
You must be signed in to change notification settings - Fork 69
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
File chooser dialogs remember the last visited directory #38
Comments
That's true. Contributions are welcome! :) |
I think it might be possible to hard code something and save the last visited dir and then However, it seems, the behavior of the file chooser is partially controlled by the Until
which would mean, when you open any file chooser, use initially This changed with
Also
There is still a key called The GTK maintainers go a lot of flag for this sudden and unneccessary change, but they are a stubborn bunch and did not change anything. |
Hi, |
Hi @ojob, Good idea, I think this would be a good way to do it. If you want to contribute, can you split your change in two:
|
Hi @adrienverge, Ok, so I'll made two commits in the pull request I'll provide, one for file creation/handling, another for usage in the frame of visited directory storage/usage. Concerning YAML, no problem with that. I had to read a little about it, but nothing too complicated considering the available PyYAML library. I'll slowly start working on this in the coming weeks, as winter comes closer ;-) |
Sounds good! :-) |
…m filesystem WARNING: this commit has not been tested (missing GTK dependencies) Format of the configuration is dict-based. Current implementation will use the YAML format. Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
Also added usage of built-in `logging` module. WARNING: this commit has not been tested (missing GTK dependencies) Signed-off-by: Joël BOURGAULT <joel.bourgault@gmail.com>
WARNING: this has not been tested (missing GTK dependencies) Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
I choose to make interface with other Gtk classes 'simpler', i.e. at a lower level: these do not access Options instance directly, but directly to parameters or to `parent` instance. WARNING: not tested yet (missing GTK dependencies) Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
…ming. WARNING: not tested yet (missing GTK dependencies) Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
WARNING: not tested (missing GTK dependencies) Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
I added an In current state of branch, the |
@adrienverge I feel that I am, in fact, working on another topic than just remembering the last visited directory - this could have been limited to the current session. Any idea how I could identify nicely the work on config file I'm doing, after creating a new GitHub Issue, without having to |
Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
And some other minor improvements. This commit has been tested, both with python2.7.13 and python3.5.3. Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
This works by file selection using the GUI, or by file addition with a drag&drop operation. Last visited directory is also stored on disk, using the options file. Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
Signed-off-by: Joël BOURGAULT <jbourgault@sii.fr>
This works by file selection using the GUI, or by file addition with a drag&drop operation. Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
…d-dir' into daily # Conflicts: # photocollage/gtkgui.py
…o daily # Conflicts: # photocollage/gtkgui.py # photocollage/render.py
I merged the two branches. See the result in my daily build. |
I missed another location to remember: the output directory (which can be different from inputs directory). Will work on this later. |
…tps://github.com/ojob/PhotoCollage.git into daily # Conflicts: # photocollage/gtkgui.py Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
This is linked to issue adrienverge#38: remember last visited directory. Access to configuration data can be performed by attribute or as dict entries. File is in YAML format, and is written automatically at exit. I choose to make interface with other Gtk classes 'simpler', i.e. at a lower level: these do not access Options instance directly, but directly to parameters or to `parent` instance. Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
Nice and really useful software. This is a feature request from having worked a bit with it.
It would be nice, when the
Add
andSave
file chooser dialogs would remember (separately) the last visiteddir instead of having to browse anew all the time.
The text was updated successfully, but these errors were encountered: