kiwix-desktop
kiwix-desktop copied to clipboard
Remember open tabs over restart
A small suggestion for a feature: how about opening the last opened zim file automatically? I think this would help many people that are using only one zim file.
Here in fact, the experience has shown that what people might want is just keep track of the last open tracks. That means:
- Same ZIM files
- Same articles
- Same vertical/horizontal position in articles
@BigKananga Is that what you mean?
@kelson42 Yes, but without the last article or at least optional. I think the main page should be started by default. An option for opening the last session like in browsers would be also nice.
Yes we should have some kind of session management (and config also)
It would be notably useful when the ZIM files are not located in C:\Users, since in that case those files do not appear in the Library (maybe this is another issue: https://github.com/kiwix/kiwix-desktop/issues/93). I for one don't like to keep my documents in C:\users, but instead on my D drive.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
Pushing (or un-staling) it as another major partner also requested the feature.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
I also wanted to support this feature. In fact, I don't need my last tabs, but it would be great if I didn't have to select the ZIM file every time I start the program! In Kiwix 0.9 I could use my previous ZIM file. Thank you. I'm mostly using Kiwix for the Wiktionary.
UPD: I mentioned problems with the search bar (https://github.com/kiwix/kiwix-desktop/issues/499); in fact, if I could just re-open the program (without selecting the ZIM file every time), this might already improve the experience.
Would love to work on this. I am thinking of using QSettings to retrieve web view URLs from tab bar class either on close or during each tab opening/closing(each tab opening and closing might be more fault-proof). Restoring them later within App init() as an initial support. Later on, this could be extended to use QSessionManager in case multiple instances might be running on the same filesystem. Storing the exact URL path of the open tabs should be possible as well!