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
Bug: Unable to Exclude Dotfiles in .codetopromptrc Configuration
Description:
I am using the .codetopromptrc file to configure code2prompt and trying to exclude files that start with a dot (such as .gitignore and .codetopromptrc) using the exclude option. However, I cannot seem to exclude these dotfiles, including the .codetopromptrc file itself. I have tried various patterns, but the dotfiles still appear in the Table of Contents.
Steps to Reproduce:
Create a .codetopromptrc configuration file with the following content:
Expected Behavior:
Files like .gitignore, .codetopromptrc, and other dotfiles should be excluded as specified in the exclude option.
Attempted Solutions:
Tried the following patterns in the exclude option to remove dotfiles:
.codetopromptrc
**.codetopromptrc
/\.codetopromptrc
None of these worked to exclude the dotfiles.
note: It might be intended, but if you specify the --gitignore option from the command line then it will ignore the exclude options in the .codetopromptrc file.
Environment:
code2prompt version 0.6.5
Possible Fix:
There might be an issue with how the tool processes glob patterns for dotfiles in the exclude option. Support for better handling of dotfile exclusions would resolve this issue.
The text was updated successfully, but these errors were encountered:
Bug: Unable to Exclude Dotfiles in
.codetopromptrc
ConfigurationDescription:
I am using the
.codetopromptrc
file to configurecode2prompt
and trying to exclude files that start with a dot (such as.gitignore
and.codetopromptrc
) using theexclude
option. However, I cannot seem to exclude these dotfiles, including the.codetopromptrc
file itself. I have tried various patterns, but the dotfiles still appear in the Table of Contents.Steps to Reproduce:
Create a
.codetopromptrc
configuration file with the following content:Run the following command:
code2prompt --output code2prompt.txt --tokens --path .
The resulting table of contents still includes dotfiles, such as
.gitignore
and.codetopromptrc
:Expected Behavior:
Files like
.gitignore
,.codetopromptrc
, and other dotfiles should be excluded as specified in theexclude
option.Attempted Solutions:
exclude
option to remove dotfiles:.codetopromptrc
**.codetopromptrc
/\.codetopromptrc
None of these worked to exclude the dotfiles.
note: It might be intended, but if you specify the --gitignore option from the command line then it will ignore the exclude options in the .codetopromptrc file.
Environment:
code2prompt version 0.6.5
Possible Fix:
There might be an issue with how the tool processes glob patterns for dotfiles in the
exclude
option. Support for better handling of dotfile exclusions would resolve this issue.The text was updated successfully, but these errors were encountered: