Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block button to copy content to the clipboard #9774

Open
zadam opened this issue May 27, 2021 · 10 comments
Open

Code block button to copy content to the clipboard #9774

zadam opened this issue May 27, 2021 · 10 comments
Labels
package:code-block type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@zadam
Copy link

zadam commented May 27, 2021

📝 Provide a description of the new feature

One of the most common actions made with code block is to copy its content (and then paste it into a IDE, terminal etc.). It would be useful to have a one click button to make this faster.

image


If you'd like to see this feature implemented, add a 👍 reaction to this post.

@zadam zadam added the type:feature This issue reports a feature request (an idea for a new functionality or a missing option). label May 27, 2021
@deajan
Copy link

deajan commented Nov 14, 2022

Any idea if we'd get that feature ?

@Nriver
Copy link

Nriver commented Jan 20, 2023

This is a cool feature, would the developers consider making this happen?

@thanayut1750
Copy link

2023 nothing yet?

@Masked-Kunsiquat
Copy link

would be a very helpful feature (:

@Witoso
Copy link
Member

Witoso commented Jan 5, 2024

Curious to hear a bit more detailed use case for this? Would you like to this copy button in the editing (writing in the editor), or it should also be downcasted to the saved HTML from the editor? I would love to hear some scenarios regarding this.

@Nriver
Copy link

Nriver commented Jan 5, 2024

I use Trilium for note-taking, and it relies on CKEditor for editing notes. The note content is in editing mode all the time.

@deajan
Copy link

deajan commented Jan 5, 2024

@Witoso I am also using trilium, where I use CKEditor to take code notes.
It would be really nice to have a copy button once the code is shown, so one can simply copy paste code into a shell.

@thanayut1750
Copy link

thanayut1750 commented Jan 5, 2024

one click copy the content in code block to clipboard
image

in Trilium note example👇
image

@zhdenny
Copy link

zhdenny commented Mar 15, 2024

Hopeful to see this feature added soon. Coming from Trilium as well

@Guyon168
Copy link

https://github.com/Nriver/copy-code-block-widget/blob/main/README_CN.md
平替功能

另外东东大佬已经实现了该功能,就是不知如何实现的
https://www.ankia.top/3LdIi2f30Pan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:code-block type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests

8 participants