[GH-ISSUE #281] feat: copy code #12020

Closed
opened 2026-04-19 18:45:23 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @superversivesf on GitHub (Dec 26, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/281

This is a minor feature request but it is a feature the Refact.ai guys put in their Jetbrains client that I found extremely useful.

All of the code segment boxes have a small copy to clipboard button in the top right had corner of the code window and it copies the contents to the clipboard.

I've seen the feature on a lot of websites so i'm guessing the behaviour is well supported by web browsers or at least easy to implement. It makes using any generated code segements and getting them into an editor very straight forward, and those are the sort of segments you want to cut and paste typically.

This seems like a straight forward feature, and it would greatly enhance the utility of the web-ui when asking it coding style questions.

Originally created by @superversivesf on GitHub (Dec 26, 2023). Original GitHub issue: https://github.com/open-webui/open-webui/issues/281 This is a minor feature request but it is a feature the Refact.ai guys put in their Jetbrains client that I found extremely useful. All of the code segment boxes have a small copy to clipboard button in the top right had corner of the code window and it copies the contents to the clipboard. I've seen the feature on a lot of websites so i'm guessing the behaviour is well supported by web browsers or at least easy to implement. It makes using any generated code segements and getting them into an editor very straight forward, and those are the sort of segments you want to cut and paste typically. This seems like a straight forward feature, and it would greatly enhance the utility of the web-ui when asking it coding style questions.
Author
Owner

@tjbck commented on GitHub (Dec 27, 2023):

Hi, Thanks for creating this issue! You should already have the copy code feature when served over either localhost or https! With #216, Just added a fix to include the copy code button over http as well, so stay tuned!

<!-- gh-comment-id:1869873443 --> @tjbck commented on GitHub (Dec 27, 2023): Hi, Thanks for creating this issue! You should already have the copy code feature when served over either localhost or https! With #216, Just added a fix to include the copy code button over http as well, so stay tuned!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#12020