[GH-ISSUE #195] Any plans to support copy to clipboard (markdown code) for notes? #145

Closed
opened 2026-03-02 11:47:05 +03:00 by kerem · 10 comments
Owner

Originally created by @ItsNoted on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/195

Love this but I’m curious if there will ever be an option to past code into notes we can easily copy to clipboard. I like to save snippets and compose stacks.

Originally created by @ItsNoted on GitHub (Jun 5, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/195 Love this but I’m curious if there will ever be an option to past code into notes we can easily copy to clipboard. I like to save snippets and compose stacks.
kerem closed this issue 2026-03-02 11:47:05 +03:00
Author
Owner

@kamtschatka commented on GitHub (Jun 5, 2024):

are you talking about the whole note, or about separate code blocks you have added using markdown? (with 3 `)
I like both ideas actually.

<!-- gh-comment-id:2149010893 --> @kamtschatka commented on GitHub (Jun 5, 2024): are you talking about the whole note, or about separate code blocks you have added using markdown? (with 3 `) I like both ideas actually.
Author
Owner

@ItsNoted commented on GitHub (Jun 5, 2024):

Just the code blocks with copy to clipboard. 😊

<!-- gh-comment-id:2149503582 --> @ItsNoted commented on GitHub (Jun 5, 2024): Just the code blocks with copy to clipboard. 😊
Author
Owner

@kamtschatka commented on GitHub (Jun 5, 2024):

I managed to do this:
image
image

When you copy it, you get a short indicator:
image

The black border around the syntax highlighter is not perfect, but tbh, i have no idea how to get rid of it^^.
Maybe @MohamedBassem or someone else knows.

I will create a PR so people can have a look.

<!-- gh-comment-id:2150810345 --> @kamtschatka commented on GitHub (Jun 5, 2024): I managed to do this: ![image](https://github.com/hoarder-app/hoarder/assets/22147234/1e8432c8-8925-4272-8c55-4c80795bdac8) ![image](https://github.com/hoarder-app/hoarder/assets/22147234/c8f7f9e6-2bc4-4339-819c-fcef24398d00) When you copy it, you get a short indicator: ![image](https://github.com/hoarder-app/hoarder/assets/22147234/f329e563-b7fd-4b71-847e-ea0c7a8538f4) The black border around the syntax highlighter is not perfect, but tbh, i have no idea how to get rid of it^^. Maybe @MohamedBassem or someone else knows. I will create a PR so people can have a look.
Author
Owner

@ItsNoted commented on GitHub (Jun 6, 2024):

Looking good!

<!-- gh-comment-id:2152259194 --> @ItsNoted commented on GitHub (Jun 6, 2024): Looking good!
Author
Owner

@ItsNoted commented on GitHub (Jun 6, 2024):

What version can I grab to try it out for docker or do I need to build it myself?

<!-- gh-comment-id:2152350719 --> @ItsNoted commented on GitHub (Jun 6, 2024): What version can I grab to try it out for docker or do I need to build it myself?
Author
Owner

@kamtschatka commented on GitHub (Jun 6, 2024):

I have only opened the PullRequest so far. Right now you would need to pull from that branch and build it yourself to try it out.
To have it in the docker image, the PR needs to be merged and a new version needs to be released.

<!-- gh-comment-id:2152379006 --> @kamtschatka commented on GitHub (Jun 6, 2024): I have only opened the PullRequest so far. Right now you would need to pull from that branch and build it yourself to try it out. To have it in the docker image, the PR needs to be merged and a new version needs to be released.
Author
Owner

@ItsNoted commented on GitHub (Jun 6, 2024):

This really could replace the amazing project Snippet-Box which has been abandoned for quite some time now. https://github.com/pawelmalak/snippet-box. Take a look at that project and you can see how Hoarder has some similar attributes. This is why I love this project so much because it reminds me a lot of Snippet-Box. I'm excited to see where it goes :)

<!-- gh-comment-id:2152382309 --> @ItsNoted commented on GitHub (Jun 6, 2024): This really could replace the amazing project Snippet-Box which has been abandoned for quite some time now. https://github.com/pawelmalak/snippet-box. Take a look at that project and you can see how Hoarder has some similar attributes. This is why I love this project so much because it reminds me a lot of Snippet-Box. I'm excited to see where it goes :)
Author
Owner

@ItsNoted commented on GitHub (Jun 10, 2024):

Thanks for adding this! It didn't work locally but when I tried it on my cloudflare tunnel it worked. Not sure why but maybe something to do with my update process.

<!-- gh-comment-id:2158358223 --> @ItsNoted commented on GitHub (Jun 10, 2024): Thanks for adding this! It didn't work locally but when I tried it on my cloudflare tunnel it worked. Not sure why but maybe something to do with my update process.
Author
Owner

@MohamedBassem commented on GitHub (Jun 10, 2024):

@ItsNoted chrome doesn't allow accessing the clipboard except when using https or localhost. So it won't work on http unfortunately.

<!-- gh-comment-id:2158363366 --> @MohamedBassem commented on GitHub (Jun 10, 2024): @ItsNoted chrome doesn't allow accessing the clipboard except when using https or localhost. So it won't work on http unfortunately.
Author
Owner

@kamtschatka commented on GitHub (Jun 10, 2024):

there should be a tooltip though, that explains this?

<!-- gh-comment-id:2158415258 --> @kamtschatka commented on GitHub (Jun 10, 2024): there should be a tooltip though, that explains this?
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
starred/karakeep#145
No description provided.