Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Feature Request: Add copy button to inline code (via parameter or settings)

Open mayurankv opened this issue 2 years ago • 4 comments

Summary

Add a copy button to inline code.

Basic example

A copy button to the right of the code.

Motivation

Useful for copying inline code.

Existing Requests?

No

mayurankv avatar Aug 16 '23 09:08 mayurankv

This issue is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Oct 16 '23 02:10 github-actions[bot]

This issue is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Dec 24 '23 02:12 github-actions[bot]

Any chance this will be added in a future release/update? Speaking for myself, I would find it useful.

mthuggett avatar Feb 21 '24 13:02 mthuggett

Yep, definitely one of the more important things I'm going to add. I'll try and include it in the next release. Just as a general note for people, commenting on the features you'd like is very helpful as I can tell where best to put my time!

Thanks

mayurankv avatar Feb 21 '24 16:02 mayurankv

This is one that I'd love to see as well. I often use inline code blocks not for code, but for documenting important values such as record IDs when I'm documenting my troubleshooting. I then often end up needing to copy these later.

edit: Suggestion on what would be helpful:

  • Configure whether or not it's copyable by default (if not always, then including copy as attribute would trigger it).
  • Copy icon shows only on hover unless configured otherwise.

TylerNielsen avatar Jan 14 '25 15:01 TylerNielsen

I'm going to add this in the current refactor! Keep an eye out.

mayurankv avatar Jan 27 '25 12:01 mayurankv

This is now fixed. Will be included in the next release.

mayurankv avatar Jan 27 '25 18:01 mayurankv