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

Wrap long source lines when viewing commits/side-by-side diff

    • 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.

      Viewing diffs/commits for text files that have changes on very long lines (such as TeX that isn't hard-wrapped) is cumbersome without line wrapping.

      It would be helpful if there was an option to toggle line wrapping for the commit and side-by-side diff views.

            [BCLOUD-3873] Wrap long source lines when viewing commits/side-by-side diff

            Prajwal added a comment -

            It's not possible to completely view the diff without this feature. Consider adding it.

            Prajwal added a comment - It's not possible to completely view the diff without this feature. Consider adding it.

            I am dyslexic and consider a feature like this to be an essential accessibility need. Please reconsider.

            Stephen Holt added a comment - I am dyslexic and consider a feature like this to be an essential accessibility need. Please reconsider.
            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3529664 ] New: JAC Suggestion Workflow 3 [ 3590977 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]

            I've added some custom styles for BitBucket Server (tested on v5.8.0) to make similar changes as @chrishemp-lifeomic's custom styles above. Not perfect by any means, but it does the trick for me:

            #!css
            
            .text-view .CodeMirror-sizer {
                min-width: initial !important;
            }
            .content-view .CodeMirror pre {
                white-space: pre-wrap !important;
                overflow-wrap: break-word !important;
            }
            .CodeMirror-hscrollbar.stash-scroll-fixed {
                display: none !important;
            }
            

            Michael Hill added a comment - I've added some custom styles for BitBucket Server (tested on v5.8.0) to make similar changes as @chrishemp-lifeomic's custom styles above. Not perfect by any means, but it does the trick for me: #!css .text-view .CodeMirror-sizer { min-width: initial !important; } .content-view .CodeMirror pre { white-space: pre-wrap !important; overflow-wrap: break -word !important; } .CodeMirror-hscrollbar.stash-scroll-fixed { display: none !important; }

            what a pity that you aint implement this feature

            Leonid Gengrinovich added a comment - what a pity that you aint implement this feature

            +1. I love the product, but I hit this issue nearly every day. The reasoning behind the won't fix label here seems weak, and if there are more important issues to fix, then please just make this a lower priority instead of a won't fix. Thanks!

            LukeMayInin added a comment - +1. I love the product, but I hit this issue nearly every day. The reasoning behind the won't fix label here seems weak, and if there are more important issues to fix, then please just make this a lower priority instead of a won't fix . Thanks!

            vekzdran added a comment -

            +1 this would be very helpful when working on smaller displays like laptops

            vekzdran added a comment - +1 this would be very helpful when working on smaller displays like laptops

            Bart Noble added a comment -

            Also agree. +1 on this much-needed feature.

            Bart Noble added a comment - Also agree. +1 on this much-needed feature.

            BitBucket never implement any changes, suggested by their customers. Still unable to view the right hand side navigation on iOS Safari 9, despite nearly 12 months of pleading with them. I am surprised this company are still in business. And yes, wordwrap would be a brilliant feature!

            Charles Robertson added a comment - BitBucket never implement any changes, suggested by their customers. Still unable to view the right hand side navigation on iOS Safari 9, despite nearly 12 months of pleading with them. I am surprised this company are still in business. And yes, wordwrap would be a brilliant feature!

            Very disappointed by the official response to this.

            GrahamA_qmdx added a comment - Very disappointed by the official response to this.

              nvenegas Nicolas Venegas (Inactive)
              6211f710fd3f partylemon
              Votes:
              15 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: