You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make results in search dialog real links you can open in a new tab #9209
So it's keyboard and middle clicks. I'd love to see real links but I shy away from altering really dynamic widgets like the search bar. They're often somewhat incompatible with how the observer works.
What do you think about using delegate to catch both middle clicks and cmd-enter? Not real links but it should cover the use case.
Are the final links available anywhere in the DOM? Or do we have to compose them manually by reading file path and default branch?
Activity
fregante commentedon Apr 23, 2026
But you already can with
cmdThe only problem is via keyboard since the default is not prevented:
Could be an easy fix via
delegate. Anything more than that (altering the DOM, etc) is most likely not worth it.SunsetTechuila commentedon Apr 23, 2026
I didn't even think to use ctrl because I always use middle-click
fregante commentedon Apr 23, 2026
So it's keyboard and middle clicks. I'd love to see real links but I shy away from altering really dynamic widgets like the search bar. They're often somewhat incompatible with how the observer works.
What do you think about using delegate to catch both middle clicks and cmd-enter? Not real links but it should cover the use case.
Are the final links available anywhere in the DOM? Or do we have to compose them manually by reading file path and default branch?
SunsetTechuila commentedon Apr 23, 2026
I'm fine with that
The
[data-href]attribute of.ActionListItem. But it's unlikely it will survive eventual React rewriteSunsetTechuila commentedon May 7, 2026
Wdym? Ctrl + Enter works for me
fregante commentedon May 7, 2026
Have they fixed it? I posted a gif. It shows opening a new tab but ALSO opening the same page in the same tab.
SunsetTechuila commentedon May 7, 2026
I guess
fregante commentedon May 7, 2026
So what's left? Can this issue be closed?
SunsetTechuila commentedon May 7, 2026
Middle click, at least
fregante commentedon May 7, 2026
I don’t think it's worth it then. You focus the field, you type with your keyboard, why take the mouse, keep a hand on the keyboard and then click?
Just press enter while holding ctrl
SunsetTechuila commentedon May 7, 2026
The feature is very small and simple. Check the PR - it's ready
fregante commentedon May 7, 2026
I'm more concerned with the overlap with the native click handlers, but I guess not a big deal.
Let's make the feature generic at least so that any more widgets that need to be "new tab" support can be added here, for example:
How about
new-tab-links(similar naming tosame-page-links)SunsetTechuila commentedon May 7, 2026
✅