mugiwara85/CodeblockCustomizer

[Feature Request] When the cursor is in the code block, I hope the copy button still exists

Closed this issue · 3 comments

Current Situation

When I click inside the code block, which means placing the cursor inside the code block, the copy button for the code block disappears, making it impossible to copy

Only by placing the cursor outside the code block will the copy button be displayed for copying

Animation demonstration

动画

That is the default behavior of the default copy button of Obsidian. I can add an option to display a copy button just like the "delete code" button, if that helps. Would that be ok?

That is the default behavior of the default copy button of Obsidian. I can add an option to display a copy button just like the "delete code" button, if that helps. Would that be ok?↳

That's also a good idea

Added an option in version 1.2.2 to display a copy code button. This is very similar to the original Obsidian one, but it will be displayed always. If there is any problem, just reply here.