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

Make diff-checker line change indicators (+ and -) into pseudo-elements to render them unselectable

    XMLWordPrintable

Details

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

    Description

      Where looking at a file's diff, you can spot changes with the green/red background as well as the + and - signs at the start of the line. This is a nice feature, but it becomes a problem when you want to select and copy multiple lines: the indicators get copied as well.

      My proposal is to get rid of these “hard-coded” indicators and replace them with a CSS pseudo-element so that they do not appear upon selection.

      I have put together a script that you can use as a bookmarklet to test the idea out:
      https://codepen.io/chrisknmojo/full/LwPgRG

      It is a small enhancement that would make it easy to share code with colleagues, for instance, or to copy a few lines from one project to another very easily.

      Let me know if this needs further clarification!

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            b1592c95ff4b chriskirknielsen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: