kiwix-desktop icon indicating copy to clipboard operation
kiwix-desktop copied to clipboard

Remember open tabs over restart

Open BigKananga opened this issue 5 years ago • 9 comments

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.

BigKananga avatar Jun 21 '19 22:06 BigKananga

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 avatar Jun 22 '19 08:06 kelson42

@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.

BigKananga avatar Jun 22 '19 10:06 BigKananga

Yes we should have some kind of session management (and config also)

mgautierfr avatar Jun 24 '19 16:06 mgautierfr

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.

bissjoe avatar Jul 06 '19 18:07 bissjoe

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.

stale[bot] avatar Nov 27 '19 04:11 stale[bot]

Pushing (or un-staling) it as another major partner also requested the feature.

Popolechien avatar Mar 04 '21 09:03 Popolechien

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.

stale[bot] avatar Jun 02 '21 16:06 stale[bot]

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.

stale[bot] avatar Apr 16 '22 15:04 stale[bot]

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.

ynikitenko avatar Apr 06 '23 12:04 ynikitenko

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!

ShaopengLin avatar Mar 05 '24 23:03 ShaopengLin