abinthomasonline / repo2txt

Web-based tool converts GitHub repository contents into a single formatted text file
https://repo2txt.simplebasedomain.com/
MIT License
871 stars 86 forks source link

Feature request: Add include/exclude filter feature #13

Open doggy8088 opened 1 week ago

doggy8088 commented 1 week ago

I use https://github.com/Microsoft/generative-ai-for-beginners as an example.

This repo contains translations folder in each chapter. If repo2txt has a feature that can include/exclude files by patterns, that will be awesome! 👍

abinthomasonline commented 1 week ago

Are you thinking of a text area where users could specify patterns in a .gitignore-style format?

I could reuse some code from the local version of the tool to parse and exclude files based on gitignore patterns. Dynamically updating the checkboxes could be a bit tricky, though.

Is this along the lines of what you're suggesting, or did you have something else in mind?

elogicuk commented 1 week ago

i need to exclude node_modules

116.1 MiB (121,788,321) 7,177 files, 654 sub-folders

abinthomasonline commented 1 week ago

I'll implement a feature as explained above. @elogicuk meanwhile you can add a .gitignore file with node_modules in the content root.

elogicuk commented 6 days ago

I'll implement a feature as explained above. @elogicuk meanwhile you can add a .gitignore file with node_modules in the content root.

already have and its till doing this :-1:

image