Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 1.7k
    • Issues 1.7k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 487
    • Merge requests 487
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

Do not update/delete: Banner broadcast message test data

Admin message

Do not update/delete: Notification broadcast message test data

  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #15100
Closed
Open
Issue created Apr 09, 2016 by Jacob Schatz@jschatz1Maintainer

UI/UX Paradigm for copying plain text or markdown

@DouweM and @rspeicher had mentioned that they would like to copy diffs (and comments maybe?) into the clipboard as markdown from the HTML they are presented as.

We talked briefly about altering clipboard text as a solution. I posit that the user will want to choose what they copy. As @DouweM mentioned he wants the diff to be copied with + and - and I do not think it necessary. Therefore I propose the following solution.

ss__2016-04-09_at_8_48_44_AM

In the screenshot

  • M would be a markdown copy button.
  • P would copy as plaintext (which would be the same as regular copying, so people wouldn't say "I just copy want it!"), in a diff we can have options to copy the diff if necessary. They can also just press Command + C to get the same result.
  • C Would add a comment between those lines as have been request in another issue. As a first step it can open the comment box for the top line. Would be an easy win.
  • L Would copy a link (to your clipboard and put it in the address bar) to that line with top line as a first step, lines from-to as a second step.

Benefits of this method:

  1. All tools exist already (we have the copy to clipboard buttons available, wouldn't only need to populate their contents).
  2. No partially supported JS API's needed. Would work on all browsers as we already use everything this needs.
  3. Would look super duper cool and make commenting/copying/pasting easier.
  4. Existing comment methods can stay so nothing changes except when they highlight text.
  5. Text selection API is widely supported.

Mockups

tooltipv03 tooltipv03--hover tooltipv03--selected

cc @JobV @dzaporozhets

Assignee
Assign to
Time tracking