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 29 forks source link

Force-fix the Chrome "reopen-old-tabs" problem #131

Closed cxw42 closed 6 years ago

cxw42 commented 6 years ago

Sometimes, when you create a new window (Ctl+N), Chrome reopens the tabs you had open previously. The problem comes and goes --- see, e.g., this thread from 2017--2018, and a bug report I submitted. TabFern could have an option to kill tabs that open, e.g., within 0.5 sec. of opening a new window, which would be one workaround. Is that a feature of interest? (PS- my recent workaround is to use Vivaldi instead ;) - see #123.)

It just started happening to me for the first time in a long time after the update to Chrome 68.0.3440.106 (Official Build) (64-bit) (cohort: 68_106_win).

Edit It became a feature of interest to me, so I started working on it :D .

cxw42 commented 6 years ago

Merge-checking needs to be coordinated with pruning. There is no reliable way to tell (as far as I know) whether a newly-created window was a Ctrl+N, a "Restore session," or some other type of window creation.

A challenging case: close a saved window, then hit Ctl+N. The new window has the same tabs as the saved window, so gets merged. Probably not what the user wanted.

Possibilities:

cxw42 commented 6 years ago

Closing for now - there is an option to do this in v0.1.17. If Chrome starts doing it again, I am happy to reopen.