feat(agent): adaptive layout for control-tab previews#1533
Open
Hindol Roy Choudhury (Hindolch) wants to merge 2 commits into
Open
feat(agent): adaptive layout for control-tab previews#1533Hindol Roy Choudhury (Hindolch) wants to merge 2 commits into
Hindol Roy Choudhury (Hindolch) wants to merge 2 commits into
Conversation
Contributor
|
PR author is not in the allowed authors list. |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Author
|
Hey I would like to introduce this feature as it is very browserOS-y thing to be done as suggested by one of a guy in the discord server, check this out and lmk! Felarof (@felarof99) |
Author
|
recheck |
Author
|
hey Nikhil (@shadowfax92) any review on this, so I can fix or just can be merged :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(agent): add Alt+Q tab switcher with adaptive preview layouts
Summary
Implements an Alt+Tab-inspired tab switcher for BrowserOS, providing a fast, keyboard-driven interface for navigating between open tabs.
The switcher uses MRU (Most Recently Used) ordering, displays live tab previews, and adapts its layout based on the number of open tabs to remain performant and usable for both small and large tab sets.
Features
Tab Switcher
Alt+Qshortcut to open the tab switcher overlay.Alt, pressingQrepeatedly cycles through tabs in MRU order.Altactivates the currently highlighted tab.Escdismisses the overlay without switching.Enteractivates the selected tab.Adaptive Layout
Navigation
Q.Tab Previews
Visual Improvements
Background Changes
chrome.storage.session.executeScriptfallback for invalidated extension contexts.Build & Infrastructure
esbuild: { jsxDev: false }to avoidjsxDEVruntime failures when building withNODE_ENV=development.as anyusagesFiles Changed
entrypoints/tab-switcher/types.tsentrypoints/tab-switcher/TabPreviewCard.tsxentrypoints/tab-switcher/TabSwitcherOverlay.tsxentrypoints/tab-switcher/useTabSwitcher.tsxentrypoints/tab-switcher.content.tsentrypoints/background/mruStore.tsentrypoints/background/index.tswxt.config.tsKnown Limitations
chrome://pdfjs), so the switcher cannot be opened while a PDF viewer tab has focus.Verification
bunx @biomejs/biome checkpasses.Video recording
browseros-tab-demo.mp4
Closes: Discord feature request for an Alt+Tab-style tab preview switcher.