cxw42 / TabFern

Google Chrome extension for saving and restoring sets of tabs, and for switching between windows and tabs from a vertical, grouped list.
https://cxw42.github.io/TabFern/
Other
170 stars 27 forks source link

Add tab count #265

Open UNIVAC-Colonel-Panic opened 2 years ago

UNIVAC-Colonel-Panic commented 2 years ago

At the top level tree node for each window -- where it normally shows "Unsaved" or "Recovered tabs" or a customized label -- can you show the number of open tabs?

Here's why this would be helpful: When I'm researching something on the web, I don't always stop after opening the first tab, switch to TF and put in a custom label. When something causes Chrome to crash, or to be restarted (thank you Windows Update!), I usually go to Chrome Menu->HIstory->Recently closed. It lists the tab count by each recently closed window, Having TF show its tab count by window would make it easier to match up against the tab count Chrome shows, making it quicker to have TF restore a window I'm interested in.

cxw42 commented 2 years ago

@SamHasler Following up on my https://github.com/cxw42/TabFern/issues/35#issuecomment-1003395068, I think this can be done entirely in app/win/model.js (possibly plus tests).

In getWinOpenChildCount():

In get_html_label():