Feature request: Exclusion/Inclusion Tags #66
Labels
enhancement
New feature or request
needs discussion
Issues needing discussion and a decision to be made before action can be taken
I've been using this tool for a few days and it's great. I've created a handful of config files for when I'm working on different parts of my app (UI, cloud functions, scripts, etc) and it works well but I've found myself wanting to only include specific parts of files in specific "packs".
For example, when working on an edge function feature, I want my AI to be aware of my button component so it can create a test page and I want to reference a few lines of a separate file that shows how the button is used (this is a very simple example but it gets the idea across).
My idea is to specify optional inclusion and Exclusion tags in the config file (ex. "// KEEP" and "// OMIT", respectively) and then when you run repopack, if it has those tags it will include code between the "KEEP" comments and exclude code between the "OMIT" comments. If a file has neither of the specific tags, all of it is included.
This would give users a lot of flexibility when creating repopacks that are specific to some domain within their apps:
The idea needs little bit of ironing out but it has the potential to save on token counts and help in situations where your files are huge.
This is an awesome tool, especially combined with Claude projects!
The text was updated successfully, but these errors were encountered: