Repository navigation
Focus the browser's address bar when it opens, like a new tab in other browsers #22334
jnunemaker
started this conversation in
Ideas
Replies: 1 comment
|
This is how codex works and it feels great. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Opening the in-app browser from the keyboard (
mod+shift+j, or the right panel's new-tab menu) leaves focus where it was, usually the composer. To go anywhere, you have to reach for the mouse and click the address bar. In Chrome, Safari, and Arc, a new tab or window puts the cursor in the address bar so you can start typing a URL or search right away.Proposal
When the browser is opened from the shortcut, the new-tab menu, or the tab strip's + button, focus its address bar with the current URL selected. The address bar already selects its text on focus, so this reuses the existing
focus-urlpath. A browser opened another way, such as an agent opening a preview tab, keeps today's behavior.I have a working branch: jnunemaker/t3code@main...feat/focus-url-on-browser-open (4 files, about 30 lines, desktop only). The browser panel mounts after the action fires, so it records a pending focus request that the address bar consumes once it's visible.
Recording (shows a build that also includes #22328): https://screen.studio/share/CvB9eUPr
Related
mod+Lnot reaching the app while a page has focus.mod+Tfor a new chat. With this change, users who bindmod+Tto open the browser get a Chrome-style new tab.Happy to open a PR if this direction works for you.
All reactions