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
If you click 'File' and 'Recent files' you'll see a list of last used files. These also have a numeric prefix.
If you press Ctrl+this number (at least on Windows .. you didn't say what OS you use, but it should work in other OS's), that database will open.
So if you want the last used database, simply press Ctrl+1.
@chrisjlocke has kindly already suggessted an alternative, but I think this would be a good idea to implement as a feature.
However, there is one thing I'd like to think about before implementing it.
What should DB4S do if the last opened DB file is inaccessible? (permission issue or removed file etc)
Should it print a warning message and automatically disable that option?
Yes, that would be great. and would it be a more user-friendly design to disable the option with warning, and then if user open any DB files in that esssion, to re-enable it?
As it'll probably need to be a user preference of some sort anyway (Automatically load last-used database?), I wonder if it's possible to include a toggle option in the warning dialog when it fails to load?
If so, that'd probably make for the least amount of surprise:
Automatically loading the last opened database didn't work.
Database FOOO.sqlite not found at /home/foo/bar/FOOO.sqlite
[x] Keep trying to automatically load the last used database?
Sorry for the delay, I actually forgot about it. By the way, I thought it would be better to add the option to the recent file lists instead of in the preferences, so I added it there, what do you think? does it look okay?
Well, I didn't hear back for about two weeks, so I pushed it to the master branch as implemented.
If anyone has any feedback on this feature, please leave a comment.
Activity
chrisjlocke commentedon Apr 29, 2024
If you click 'File' and 'Recent files' you'll see a list of last used files. These also have a numeric prefix.
If you press Ctrl+this number (at least on Windows .. you didn't say what OS you use, but it should work in other OS's), that database will open.
So if you want the last used database, simply press Ctrl+1.
lucydodo commentedon Apr 30, 2024
@chrisjlocke has kindly already suggessted an alternative, but I think this would be a good idea to implement as a feature.
However, there is one thing I'd like to think about before implementing it.
What should DB4S do if the last opened DB file is inaccessible?
(permission issue or removed file etc)Should it print a warning message and automatically disable that option?
justinclift commentedon Apr 30, 2024
Maybes some kind of warning like this?
lucydodo commentedon May 1, 2024
Yes, that would be great. and would it be a more user-friendly design to disable the option with warning, and then if user open any DB files in that esssion, to re-enable it?
justinclift commentedon May 1, 2024
Interesting idea.
As it'll probably need to be a user preference of some sort anyway (
Automatically load last-used database?), I wonder if it's possible to include a toggle option in the warning dialog when it fails to load?If so, that'd probably make for the least amount of surprise:
lucydodo commentedon May 2, 2024
Cool, I'll try to implement it in free time this week. :)
justinclift commentedon May 2, 2024
Cool. 😄
lucydodo commentedon May 25, 2024
Sorry for the delay, I actually forgot about it. By the way, I thought it would be better to add the option to the recent file lists instead of in the preferences, so I added it there, what do you think? does it look okay?
feat: Add option to auto-load last opened db file when startup
feat: Add option to auto-load last opened db file when startup
lucydodo commentedon Jun 6, 2024
Well, I didn't hear back for about two weeks, so I pushed it to the
masterbranch as implemented.If anyone has any feedback on this feature, please leave a comment.