arifwn / TinySuspender

Unload idle tabs to reduce memory and cpu usage.
55 stars 11 forks source link

Keyboard shortcut closes <all> active tabs across multiple windows instead of just one #11

Closed zecatox closed 5 months ago

zecatox commented 1 year ago

The "Suspend active tab" keyboard shortcut suspends not only the active tab of the active Google Chrome window, but also all active tab of any other google chrome windows currently opened. Even if those windows are currently minified.

It can be quite annoying if, for instance, you try to suspend a tab on your main screen, while you're watching a youtube video or have a pomodoro countdown on the other one.

(Windows 10 - Google Chrome 116.0.5845.141)

jlearnscode commented 5 months ago

I reproduced this error. Using the keyboard shortcut for 'Suspend active tab' will suspend every active tab in all browser windows. Manually clicking the extension and clicking 'Suspend This Tab' only suspends the currently active tab for one (the current) window. Please either change the shortcut name to 'Suspend all active tabs' or revise it to only suspend the current active tab in the current window.

Preferrably, create a new shortcut for only suspending the currently active tab 'This Tab', while also keeping the original shortcut and rename to 'Suspend all active tabs'.

Thank you!

(Brave v 1.66.118, based on Chromium 125.0.6422.147)

arifwn commented 5 months ago

Keyboard shortcuts are now only applied to the last active window. Updates will be pushed to chrome web store soon.

arifwn commented 5 months ago

Also added new shortcuts that applied to all windows: