Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-7247

cannot copy/paste text from SourceTree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 4.0
    • General
    • None
    • Severity 3 - Minor

      In older versions of SourceTree (or, perhaps, on older versions of MacOS, because I only started seeing this issue after installing SourceTree on a new Mac with OSX Catalina) I could select text from a commit and copy it to the clipboard, then paste it into another app. I would often use this to copy a git SHA I was interested in.

      With SourceTree 4.0.1 (234) on MacOS Catalina, however, I can no longer copy selected text. I can select text, but the selection is ignored. Whenever I copy (cmd+c), regardless of what text is selected, what is put into the clipboard is a useless one-line commit summary that contains

      • the first line of the git commit
      • the abbreviated git commit SHA
      • the author and author email
      • the commit date

      While this information might be useful to someone, it satisfies only one use case and prevents any other usage of the clipboard. And while the clipboard contains the SHA that is most-often what I am looking for, the SHA is buried amongst a lot of other information that I don't need, which prevents me from pasting the SHA into other tools.

      I understand there is a menu item "Copy SHA-1 to Clipboard" that allows me to copy the git SHA for any commit. That is nice, but there is no keyboard shortcut for it which means it is not nearly as useful as the simple, ergonomic, and idiomatic, cmd+c action. Plus, sometimes I want to copy text other than the git SHA - for example sometimes I might want to copy some text from a commit log message. So this menu item exists, but is no substitute for cmd+c.

      It is frustrating that SourceTree does not let me copy what I want. It is even more frustrating because SourceTree lets me SELECT text that I want to copy, but then does not copy it - what a cruel mistress you are, SourceTree, to let me think I can copy text like that.

      What is the design purpose of preventing users from selecting and copying text? By not allowing cooy/paste, SourceTree is dramatically less useful to me. So please:

      • Restore the copy behavior that copies selected text to the clipboard.
      • If you must, if this is really a dominant use case of the tool, you can copy the one-line commit summary to the clipboard if no other text is selected.
      • And, if you want it to be useful, please add a keyboard shortcut to the "Copy SHA-1 to Clipboard" menu item.

      Thanks, and thanks for providing SourceTree to the community.

              Unassigned Unassigned
              b84b71aee0e4 osievert
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: