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
169 stars 27 forks source link

Indicate discarded tabs in the tree #279

Open cxw42 opened 2 years ago

cxw42 commented 2 years ago

chrome://discards Tabs with Loading State = loaded (or loading and such) will use resources, as you can see on the task manager (shift-escape) tabs that are unloaded (either due to not having been activated yet in the context of lazy loading, or having been discarded, which sets Lifecycle State to discarded) will not use resources. Edge makes extensive use of 'sleeping' tabs, which visually appear discarded but aren't.

https://developer.chrome.com/docs/extensions/reference/tabs/#method-discard

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/discard

For implementations of this (not saying Tab Fern should actively discard any tabs!), you can see https://github.com/rNeomy/auto-tab-discard https://github.com/hrj/sloth https://github.com/rkodey/the-great-er-discarder-er https://github.com/jman/lazy_tab

Originally posted by @Luckz in https://github.com/cxw42/TabFern/issues/35#issuecomment-1003494374

cxw42 commented 2 years ago

When I discard tabs using auto-tab-discard, it puts a :zzz: in the title:

image

I don't know if that is done by Chrome or by auto-tab-discard.

Luckz commented 2 years ago

That is a (default) option of ATD and has nothing to do with Chrome's API. Greying out the tab favicon is also an ATD feature/option. You can use the 'urgent discard' button on chrome://discards to see for yourself that (besides for customized Chromiums like Edge and Vivaldi) there is no visual cue whether a tab is loaded / unloaded, discarded, etc. Only currently loading tabs are typically indicated by an animation.

cxw42 commented 2 years ago

@Luckz thanks for the clarification! I agree showing this in TF would be reasonable. I would like it to be controlled by a user option.