-
-
Notifications
You must be signed in to change notification settings - Fork 714
Add include/exclude options specific to --compress
#516
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
Comments
Hi, @stoopkidddd ! It's still just a rough idea, but I’ve been considering a configuration format like this. {
"output": {
// ... output config
"compress": false // default: no compression
},
"process": {
"patterns": [
{
"pattern": "docs/**/*",
"compress": true
},
{
"pattern": "website/**/*",
"compress": true,
"removeEmptyLines": true
}
]
}
} |
Introducing just Having both For example, in the case of Repomix, if I want to focus on the
I'll keep thinking on this a bit more! |
Thanks for the reply @yamadashy! I do love that first suggestion as a long term goal for its extensibility. I also agree about limiting it to |
@stoopkidddd I'll go ahead and assign you to the issue if you're okay with it. |
I’ll go ahead and assign this issue to you for now. |
Going to take a stab at making a PR for this myself, but in the meantime wanted to put an issue up to track.
It'd be really useful to allow for
--compress
to have its own exclusive parameters to define what files should be compressed. Right now, it is all or nothing. But oftentimes, I have a certain section of the code base that is most relevant and I want to send the whole section in the context, and then compress the rest as a bonus.Not entirely sure what the best CLI argument names would be, and which takes precedence. Right now there is
--include
and--ignore
, so probably--compress-include
and--compress-ignore
.But what happens if say, you put a file in
--ignore
and then also put it in--compress-include
? Lots of open ended questions like that. Probably will be dictated by the structure of the code and what is easiest to implement once I dig in.If anyone has thoughts please chime in.
The text was updated successfully, but these errors were encountered: