Copy to clipboard on Code Block

FWIW, a small copy icon in the corner of a code block on hover that copies the code without moving the cursor or selecting text & expanding the code markdown would be far better user experience for Bear 2.

Current Bear 2 beta copy code experience:

Bear 2 Copy Code

  • Right-click on code block, selects whatever text is under the mouse when right-clicking and expands the code block markdown, making for a clunky user experience.

GitHub copy code experience:

GitHub Copy Code

  • Hover, click, and you’re done. Cursor doesn’t move and code block doesn’t shift as you’re trying to copy it.

Honestly, the latter approach is more consistent with Bear 2’s beautiful only-show-markdown-when-you-need-it approach. :slight_smile:

6 Likes