fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Add action to choose browser window/tab from a menu. #111

Open duhrer opened 8 months ago

duhrer commented 8 months ago

Currently, we support navigating to the next tab or next browser window manually. This requires binding four buttons to cover the full range of very similar navigation tasks.

In reading the docs for chrome.windows.getAll, it seems like we could fairly add an action to present a navigable list of open windows and let the user choose one.

This list could have any unusable entries (chrome:// windows) greyed out with an explanation.

With a little thought, this list could have tabs nested under windows, and also serve to enable tab navigation.

The currently focused window should be focused in the list initially.

A courtesy link to add a tab and/or window on the modal would be nice.

duhrer commented 7 months ago

I was hoping we could present thumbnails like the alt-tab and apple/windows+tab menus in many browsers, but it seems like you can only take a thumbnail of the active window. Looks like we'd have to display a list of window/tab titles.