[GH-ISSUE #3478] [FR] Add a copy button to the top-right corner of the code block. #1569

Closed
opened 2026-03-23 20:51:06 +00:00 by mirror · 4 comments
Owner

Originally created by @LucasXu0 on GitHub (Sep 20, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3478

Originally assigned to: @Xazin, @MayurSMahajan on GitHub.

Description

  • only show the copy button when hovering on the code block

Impact

It would be more convenient to copy the code from the code block without having to select it all.

Additional Context

Please refer to the implementation of the menu of the image block

Originally created by @LucasXu0 on GitHub (Sep 20, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3478 Originally assigned to: @Xazin, @MayurSMahajan on GitHub. ### Description - only show the copy button when hovering on the code block ### Impact It would be more convenient to copy the code from the code block without having to select it all. ### Additional Context Please refer to the implementation of the menu of the image block
Author
Owner

@MayurSMahajan commented on GitHub (Sep 21, 2023):

Hey Lucas, actually I have made this feature already in my project (the Standalone Codeblock package).
image

<!-- gh-comment-id:1728748593 --> @MayurSMahajan commented on GitHub (Sep 21, 2023): Hey Lucas, actually I have made this feature already in my project (the Standalone Codeblock package). ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/47064215/63883556-9747-4472-98d7-58c9935a7d45)
Author
Owner

@Xazin commented on GitHub (Oct 25, 2023):

Hey @MayurSMahajan, will you be opening a PR for this? 😄

<!-- gh-comment-id:1779780423 --> @Xazin commented on GitHub (Oct 25, 2023): Hey @MayurSMahajan, will you be opening a PR for this? 😄
Author
Owner

@MayurSMahajan commented on GitHub (Oct 25, 2023):

Yes sir. It's ready in my CodeBlock project. I am currently adding the CodeBlock package to AppFlowy. Within this week you ll have a big PR to review 😁

<!-- gh-comment-id:1779799848 --> @MayurSMahajan commented on GitHub (Oct 25, 2023): Yes sir. It's ready in my CodeBlock project. I am currently adding the CodeBlock package to AppFlowy. Within this week you ll have a big PR to review 😁
Author
Owner

@Xazin commented on GitHub (Oct 25, 2023):

Yes sir. It's ready in my CodeBlock project. I am currently adding the CodeBlock package to AppFlowy. Within this week you ll have a big PR to review 😁

Looking forward to that haha :D 👍

<!-- gh-comment-id:1779800934 --> @Xazin commented on GitHub (Oct 25, 2023): > Yes sir. It's ready in my CodeBlock project. I am currently adding the CodeBlock package to AppFlowy. Within this week you ll have a big PR to review 😁 Looking forward to that haha :D :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1569
No description provided.