After using Chrome for a decade and switching back to Firefox, one feature I missed was the ability to right-click and Go to [url] directly, for any selected text that vaguely resembles a URL.

I made Goto foo to approximately replicate Chrome’s behavior in Firefox, but it would be nice if no extension were necessary.

  • wia@lemmy.ca
    link
    fedilink
    arrow-up
    52
    arrow-down
    2
    ·
    1 year ago

    Huh? Firefox does this though. Highlight an address and right click then select open in new tab or whatever.

      • unexposedhazard@discuss.tchncs.de
        link
        fedilink
        arrow-up
        18
        ·
        1 year ago

        IP adresses are pretty edge case yeah. I dont know if that should even be supported. The “example.com” does actually work tho, its just if you only include “.co” in your selection, it doesn’t recognize it as a URL even tho .co is the national TLD of Colombia. But all that really needs to change is to support all existing TLD’S and maybe IP addresses if there is community interest in it.

        • p1mrx@sh.itjust.worksOP
          link
          fedilink
          arrow-up
          8
          arrow-down
          3
          ·
          edit-2
          1 year ago

          I don’t think .co versus .com is the relevant factor. I can select xample.co by itself, but not as a substring of http://www.example.com. The rules seem so arbitrary and context-dependent that it behaves more like a dice roll than a usable feature.

          If a selection to URL feature cares about TLDs, IP addresses, or text beyond the selection range, then it’s operating at the wrong abstraction layer. (well, technically Goto foo has a couple lines of code to [bracket] bare IPv6 addresses, but that’s not core functionality.)

  • Yote.zip@pawb.social
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    1
    ·
    1 year ago

    I highlight the URL text, then drag it to my tab bar to open it. That could be an option if the workflow is not too annoying to use.

    • p1mrx@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      Interesting, that does appear to solve the same problem.

      In my decades of using web browsers, I can’t say that I’ve ever tried dragging text to the address bar. That’s not very discoverable, and the drag action messes with the page’s scroll position.

  • Voltage808s@kerala.party
    link
    fedilink
    arrow-up
    21
    ·
    1 year ago

    the first option when you right click a text vaguely resembling a text is “open link in new tab” or something like that. Its the same thing as go to [url]

  • akilou@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    1 year ago

    Highlight it and drag it up to the tabs bar. It’ll open in a new tab. Or drag it onto an existing tab and it’ll open in that tab. Highlight any arbitrary text, do the same, and it’ll search that text in your default search engine.

  • paraphrand@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    Don’t let everyone “well actually” you, here. The fact you are making this robust is great.

    Feature idea: holding down Alt/Option changes the menu to open in a new tab.

    • p1mrx@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      ‘New Tab’ is the default/only behavior currently.

      I notice that Chrome supports Ctrl-click (background tab) and Shift-click (new window), and Firefox provides a modifiers array, so I think I could replicate this.

      • paraphrand@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        Oh, sounds good. It would be best to follow similar conventions. I’m a Safari person, so I didn’t know New Tab was default in Firefox. Making the menu say it will be a new tab would be good.

        • p1mrx@sh.itjust.worksOP
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          I’ve added support for Ctrl/Command/Shift in v1.7, but the menu text is unchanged because I don’t know which keys are pressed prior to the click event. This matches Chrome’s behavior.

  • kubica@kbin.social
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Maybe it is more visible that way, but the same can be done clicking on open link or open in private window.

    • p1mrx@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      Firefox’s ‘Open Link’ feature is quite limited compared to Chrome. For example, try navigating to lemmy.ml using the “Firefox@lemmy.ml” link in the sidebar.

      Even in cases where it works, it doesn’t preview the link target in the context menu.

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Use double click to highlight instead of single click to select words instead of characters.

  • dhtseany@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    edit-2
    1 year ago

    I agree with you 100% and highlighting text and choosing the new tab option isn’t always viable. I often have to copy text from outside the browser and paste it into the address bar, I really miss that feature of Chrome.

    Edit: why the down votes? He makes a fair point that some of you are disagreeing with without considering that there are those out there that use their browsers differently than yourself. Even if I used Firefox as my primary browser for the last 3 years I’m still able to be honest about my experience.