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

Feature Request: Copy to clipboard after packing #152

Open
surajmandalcell opened this issue Nov 2, 2024 · 4 comments
Open

Feature Request: Copy to clipboard after packing #152

surajmandalcell opened this issue Nov 2, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@surajmandalcell
Copy link

Maybe a repomix -x or something to copy to clipboard after generating or a config option would be nice.

@yamadashy
Copy link
Owner

yamadashy commented Nov 3, 2024

Hi, @surajmandalcell
Thank you for the feature request!

This is a great suggestion! Similar tools often have this behavior by default, so there's definitely a need for this in Repomix as well.

Regarding the implementation, I'm thinking of adding a --copy option. Although it might be a bit verbose, I believe --copy would be more intuitive across all platforms (considering pbcopy on macOS, clip on Windows, and xclip/xsel on Linux).

@yamadashy yamadashy assigned yamadashy and unassigned yamadashy Nov 4, 2024
@yamadashy
Copy link
Owner

Great news!
@vznh has created a PR to implement this feature!

Feel free to check out and test the implementation once it's merged.

@surajmandalcell
Copy link
Author

LGTM, the copyToClipboard config makes all the difference, thanks!

yamadashy added a commit that referenced this issue Nov 5, 2024
feat: added copy functionality from #152
@yamadashy
Copy link
Owner

@surajmandalcell
This feature has been released in v0.2.2!

You can now use it with:

repomix --copy

You can also enable it in your repomix.config.json:

{
  "output": {
    "copyToClipboard": true
  }
}

Please try it out and let us know how it works for you!

Thank you for this great feature suggestion!

@yamadashy yamadashy added the enhancement New feature or request label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants