Skip to content

Make results in search dialog real links you can open in a new tab #9209

Closed

Description

Activity

  1. fregante commented on Apr 23, 2026

    @fregante
    Member

    But you already can with cmd

    Image

    The only problem is via keyboard since the default is not prevented:

    Image

    Could be an easy fix via delegate. Anything more than that (altering the DOM, etc) is most likely not worth it.

  2. added
    small
    on Apr 23, 2026
  3. SunsetTechuila commented on Apr 23, 2026

    @SunsetTechuila
    ContributorAuthor

    But you already can with cmd

    I didn't even think to use ctrl because I always use middle-click

  4. fregante commented on Apr 23, 2026

    @fregante
    Member

    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?

  5. SunsetTechuila commented on Apr 23, 2026

    @SunsetTechuila
    ContributorAuthor

    What do you think about using delegate to catch both middle clicks and cmd-enter?

    I'm fine with that

    Are the final links available anywhere in the DOM?

    The [data-href] attribute of .ActionListItem. But it's unlikely it will survive eventual React rewrite

  6. linked a pull request that will close this issue`new-tab-links` - New feature #9371on May 7, 2026
  7. SunsetTechuila commented on May 7, 2026

    @SunsetTechuila
    ContributorAuthor

    The only problem is via keyboard since the default is not prevented:

    Wdym? Ctrl + Enter works for me

  8. fregante commented on May 7, 2026

    @fregante
    Member

    Have they fixed it? I posted a gif. It shows opening a new tab but ALSO opening the same page in the same tab.

  9. SunsetTechuila commented on May 7, 2026

    @SunsetTechuila
    ContributorAuthor

    Have they fixed it?

    I guess

  10. fregante commented on May 7, 2026

    @fregante
    Member

    So what's left? Can this issue be closed?

  11. SunsetTechuila commented on May 7, 2026

    @SunsetTechuila
    ContributorAuthor

    So what's left?

    Middle click, at least

  12. fregante commented on May 7, 2026

    @fregante
    Member

    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

  13. SunsetTechuila commented on May 7, 2026

    @SunsetTechuila
    ContributorAuthor

    I don’t think it's worth it then

    The feature is very small and simple. Check the PR - it's ready

  14. fregante commented on May 7, 2026

    @fregante
    Member

    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 to same-page-links)

  15. SunsetTechuila commented on May 7, 2026

    @SunsetTechuila
    ContributorAuthor

    ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

acceptedenhancementgithub bugsmall

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions