Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Option to re-open browser with all tabs Collapsed #3545

Closed
fung00 opened this issue May 8, 2024 · 2 comments
Closed

[Enhancement] Option to re-open browser with all tabs Collapsed #3545

fung00 opened this issue May 8, 2024 · 2 comments

Comments

@fung00
Copy link

fung00 commented May 8, 2024

Description: an option to have the tab tree default to fully collapsed whenever the browser is re-opened after being shut down.

Rationale: if you're re-opening a lot of sub-trees, what you want right away is to see just the top headings so you can quickly navigate to whatever you want first.

Note: An option to fully re-create the previous tree state, with sections expanded or collapsed as when the browser was closed, would be nice too, but much less important (and probably much more work).

BTW: Love Tree Style Tab, could NOT use Firefox (or Waterfox) without it. Brilliant work, many thanks!

@piroor
Copy link
Owner

piroor commented May 19, 2024

I'm negative to add this options as a built-in, because I think it is natural to restore trees' collapsed/expanded state. Instead this looks possible to implement as a helper addon. I hope it is published by someone really need it, not by me.

TST has an API to collapse tree from other addons.
https://github.com/piroor/treestyletab/wiki/API-for-other-addons#collapse-expanded-tree
The key of the feature is: you'll need to call this API only once per a window, when a browser window is opened and all tabs are completely restored. For example, listening "tabs.onCreated" and treating a window as completely restored when 500msec past from last "tabs.onCreated" event for a window.

Copy link

This issue has been closed due to no response within 7 days after labeled as "wontfix", 7 days after last reopened, and 7 days after last commented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants