Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-10622

url link to multiple lines with #cl-XX-YY (BB-11586)

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I would like to link to and highlight a block of code as opposed to a single line. Example:
      https://bitbucket.org/[user]/[repo]/src/tip/file.py#cl-10-20\\
      which would link to line 10 and highlight lines 10 through 20. GitHub example

      This is an extension of issues BCLOUD-8760 and BCLOUD-444

            [BCLOUD-10622] url link to multiple lines with #cl-XX-YY (BB-11586)

            @dtao consider updating the documentation to reflect the ":" feature at https://confluence.atlassian.com/bitbucket/hyperlinking-to-source-code-in-bitbucket-824476709.html

            AviBuenoSWS added a comment - @dtao consider updating the documentation to reflect the ":" feature at https://confluence.atlassian.com/bitbucket/hyperlinking-to-source-code-in-bitbucket-824476709.html

            This is awesome. Thank you @dtao !

            John Guidry added a comment - This is awesome. Thank you @dtao !

            dtao added a comment -

            Good news, everyone: we deployed the change to scroll to the (first) highlighted range earlier this week.

            Here's an example:

            https://bitbucket.org/pypy/pypy/src/b96f875/pypy/interpreter/pycompiler.py#pycompiler.py-109:126

            dtao added a comment - Good news, everyone: we deployed the change to scroll to the (first) highlighted range earlier this week. Here's an example: https://bitbucket.org/pypy/pypy/src/b96f875/pypy/interpreter/pycompiler.py#pycompiler.py-109:126

            dtao added a comment -

            OK, honesty hour: I did implement the logic to scroll to the highlighted range as requested by @elubinenaptive and others. And then there was a small bug, and I reverted it, and then other stuff came up and I totally forgot about it.

            I am pleased/embarrassed to share that I have just resurrected this work (almost a year later!) and have a pull request open to get it back in. Hopefully it'll be shipped in the next week or so.

            Better late than never, right?

            dtao added a comment - OK, honesty hour: I did implement the logic to scroll to the highlighted range as requested by @elubinenaptive and others. And then there was a small bug, and I reverted it, and then other stuff came up and I totally forgot about it. I am pleased/embarrassed to share that I have just resurrected this work (almost a year later!) and have a pull request open to get it back in. Hopefully it'll be shipped in the next week or so. Better late than never, right?

            MMiszy added a comment -

            This is still not resolved

            MMiszy added a comment - This is still not resolved

            ronvis added a comment -

            I'd love that too, Tnx!

            ronvis added a comment - I'd love that too, Tnx!

            dtao added a comment -

            @elubinenaptive et al: reasonable request! I'm sure I can sneak that in at some point in the next couple weeks.

            dtao added a comment - @elubinenaptive et al: reasonable request! I'm sure I can sneak that in at some point in the next couple weeks.

            Whoa, was helping patch vim-fubitive to use the updated #<filename>-<line> format and found this ticket. Fixing the scroll on load for ranges would make this perfect!

            John Guidry added a comment - Whoa, was helping patch vim-fubitive to use the updated #<filename>-<line> format and found this ticket. Fixing the scroll on load for ranges would make this perfect!

            dyroffk added a comment -

            +1 for scrolling the page down to the first highlighted range on load

            dyroffk added a comment - +1 for scrolling the page down to the first highlighted range on load

            Before calling this final, could you also make the page JUMP to the highlighted lines? just loading the page doesn't give the user any indication that lines are highlighted below....

            elubinenaptive added a comment - Before calling this final, could you also make the page JUMP to the highlighted lines? just loading the page doesn't give the user any indication that lines are highlighted below....

              Unassigned Unassigned
              5295f620cea4 theodoregoetz
              Votes:
              24 Vote for this issue
              Watchers:
              31 Start watching this issue

                Created:
                Updated:
                Resolved: