I have a tab manager extension. Currently it gets a list of all tabs and allows you to close tabs, move them around, open new tabs, etc.
I would like to use the extension to close tabs that exist in saved windows. However if the saved window is suspended (e.g. not actually open, but in the greyed-out state), then the tab manager doesn't know the window exists.
e.g. tab manager only sees three windows
When there are more saved windows:
I imagine that adding saved windows to the chrome extension tabs api would be problematic (given that the windows wouldn't have a real id, and the tabs wouldn't have a real id). Instead I propose adding a new api for extensions that exposes the saved windows.
In particular would love these apis:
- List saved windows
- Including an id for each saved window
- Would be great to have a windowId for the saved window (if it exists)
- List tabs within saved windows
- Including an id for each saved tab
- Would be great to have the tab id as well (if it exists)
- title and url for each tab
- Deleted a saved window
- Delete a saved tab
- Rename a saved window
- Move a tab's position in saved window, or move a tab across saved windows
- Listeners/callbacks/events for when a window or tab is changeed
I would integrate save saved windows into my tab manager so that it'd be easy to open/close/managed saved windows in bulk.