08/21/2012, 07:03 PM
Since I'm starting to do browser patches, here's one to think about: How about a system that will restore closed cards and allow saving a stack of cards and exiting so the next time Web is opened the stack will be restored? It would behave as on modern browsers. Here's how I'm thinking it should work:
Reopen closed cards
- A button can be tapped to open the last card closed
- The button can be held to display recently closed cards (list of 5-10), like the list in the nav buttons patch
- The user can tap the list item to reopen that card, and the item will be removed from the list until it's closed again
- Card adds itself to a database when closed, and removes itself when restored. Database is kept by date.
- A menu item allows all browser cards to be closed.
- The next time Web is opened, the card URLs will be reloaded into a whole bunch of cards stacked together
- Individually closing all cards will not result in a restore next time (though it could be handy; may be able to detect a close-all action by time closed)
-Each card will generate a hash id on start, and insert an entry into a database. When the URL is changed, the entry is updated with the new URL. The entry will be removed when the card closes (or maybe write a close time instead, and purge old entries on next start). In case Luna crashes, the URLs will still be in the database for restore. Entry will not be removed if closed with menu option.
How's that for a function description?