Skip to content

feat: add command to copy last response to clipboard #2386

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

07pepa
Copy link

@07pepa 07pepa commented Jul 31, 2025

This feature is for clai package.

It adds /cp command (analogus to linux cp command) to clai that coppies model output to clipboard as is.

TL DR what was done:

added new clai dependency: pyperclip
added handler in clai for comand /cp to store data to clipboard
added documentation
added unit tests
tested manualy

Copy link
Contributor

hyperlint-ai bot commented Jul 31, 2025

PR Change Summary

Added a new command to the clai package that allows users to copy the last response to the clipboard.

  • Introduced the /cp command to copy model output to clipboard
  • Added the pyperclip dependency for clipboard functionality
  • Updated documentation to include the new /cp command
  • Implemented unit tests for the new feature

Modified Files

  • clai/README.md
  • docs/cli.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@07pepa
Copy link
Author

07pepa commented Jul 31, 2025

this is basicly eopened #2049

github does not give me ability to reopen

@07pepa 07pepa force-pushed the add-coppy-to-clipboard-comand branch from 06e3901 to 9d9737a Compare August 6, 2025 15:43
@07pepa 07pepa requested a review from DouweM August 6, 2025 16:00
@DouweM
Copy link
Collaborator

DouweM commented Aug 6, 2025

@07pepa Thank you! Just this week we started working with the creator of rich and textual on a rewrite of clai though, so we're going to keep it frozen for a bit until that lands. I'll leave this PR as a draft and we can update for the new implementation then.

@DouweM DouweM marked this pull request as draft August 6, 2025 16:26
@07pepa
Copy link
Author

07pepa commented Aug 7, 2025

@DouweM keep me in loop i will ocassionaly rebase to have less work when it does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants