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

feat: Copy button for code block #908

Closed
hahuyhoang411 opened this issue Dec 8, 2023 · 1 comment · Fixed by #1062
Closed

feat: Copy button for code block #908

hahuyhoang411 opened this issue Dec 8, 2023 · 1 comment · Fixed by #1062
Assignees
Labels
P2: nice to have Nice to have feature type: feature request A new feature

Comments

@hahuyhoang411
Copy link
Contributor

Problem
We haven't had a copy button for the code block yet. The only way to copy is copy the whole message.

Success Criteria
Only copy the text between triple backticks (```)

Additional context
The example of copy button:

Screenshot 2023-12-08 at 11 22 04
@hahuyhoang411 hahuyhoang411 added P2: nice to have Nice to have feature type: feature request A new feature labels Dec 8, 2023
@urmauur urmauur self-assigned this Dec 8, 2023
@dan-menlo dan-menlo modified the milestones: 0.4.2, API Endpoint at localhost:1337, Jan as the default Assistant Dec 11, 2023
@urmauur urmauur moved this to Todo in Menlo Dec 11, 2023
@freelerobot
Copy link
Contributor

From my issue:

Problem
Users can't easily copy code answers

Success Criteria
A clear and concise description of what you want to happen.

LLM responds with a code block
User hovering over codeblock should see option to copy codeblock
Clicking copy, copies only the code, not the entire LLM response.
Additional context
Add any other context or screenshots about the feature request here.

@urmauur urmauur moved this from Todo to In Progress in Menlo Dec 14, 2023
@urmauur urmauur moved this from In Progress to In Review in Menlo Dec 18, 2023
@urmauur urmauur moved this from In Review to Done in Menlo Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2: nice to have Nice to have feature type: feature request A new feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants