You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for reading include patterns from a file to improve usability when dealing with many specific files or complex patterns.
Problem
Currently, when using the --include option with many specific file paths, the command line becomes unwieldy and difficult to manage. For example:
repomix --include "file1.ts,file2.ts,file3.ts,file4.ts,file5.ts,..."# Very long command line
This becomes problematic when:
Including many specific files (10+ files)
Files have long paths
You want to reuse the same set of files across multiple runs
Working with version control where command history becomes messy
Command line length limits are reached
Proposed Solution
Add a new option --include-from-file (or --include-file) that reads include patterns from a file, one per line.
Usage Example
# Create a file with patterns/files to includeecho"src/components/**/*.tsxsrc/hooks/*.tssrc/lib/utils/dateUtils.tssrc/pages/dashboard/**/store.ts"> include-patterns.txt
# Use the file with repomix
repomix --include-from-file include-patterns.txt
File Format
One pattern per line
Empty lines and lines starting with # are ignored (comments)
Both glob patterns and specific file paths are supported
Hi, @jurnalanas !
Thank you for the suggestion!
I agree that allowing a list of patterns to be passed in would greatly improve usability.
I’m still weighing the exact flag name, but the feature itself looks excellent.
While names like --include-list or --file-include could work, I currently feel that --include-from-file is the best fit.
Add support for reading include patterns from a file to improve usability when dealing with many specific files or complex patterns.
Problem
Currently, when using the
--include
option with many specific file paths, the command line becomes unwieldy and difficult to manage. For example:This becomes problematic when:
Proposed Solution
Add a new option
--include-from-file
(or--include-file
) that reads include patterns from a file, one per line.Usage Example
File Format
#
are ignored (comments)Example include file:
Benefits
Would love to see this feature added to make repomix even more flexible for complex project structures!
The text was updated successfully, but these errors were encountered: