k08045kk / CopyTabTitleUrl

MIT License
88 stars 10 forks source link

Sorting windows by number of tabs before copying tabs #77

Open vsl7 opened 2 months ago

vsl7 commented 2 months ago

Before copying tabs of all windows, it’s better to sort windows by their number of tabs instead of using windows in random order. (Window IDs are not suitable for this as they change on browser restart.) This will maintain usually the same window order, which is important for comparing copied lists of tabs.

k08045kk commented 2 months ago

This extension copies tabs in the same order as tabs.query() outputs them.

I believe the current order depends on the window ID (window creation order). Therefore, window order can be controlled by temporarily closing the window and then using “Restore Window (Chrome)” or “Recently Closed Windows (Firefox)” in the history.

Personally, I think the window ID order is fine for achieving your intended use, except that the order of the windows will be unintended when the browser is restarted. Wouldn't rearranging the order on restart into the intended order solve the problem?

Or is it a glitch in the browser that does not maintain the window order upon restart? How many users do you think will use this feature, including you, after the browser glitch is fixed? I don't think anyone will use it.

I will revisit this feature when I have a better idea that it will get enough users. But I don't think now is the time.