Modify the logic for matching the FILE_IGNORE_LIST #370
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Is your feature request related to a problem? Please describe.
When I work on a document project based on markdown, Embedding the workspace has a catastrophic result, as all the
.md
files are ignored, while image files like.png
are included instead. Therefore, I found that there are some issues with the current embedding system.Describe the solution you'd like
At this stage, Twinny uses include to match the FILE_IGNORE_LIST. If the file name contains any item from the list, the file will be ignored. This imposes unnecessary restrictions on file naming.
twinny/src/extension/utils.ts
Lines 689 to 693 in 57cc2ae
I was wondering if we could replace include with strict equality. Since most of the directories or file names that need to be ignored are fixed, we could introduce wildcards like
*
for the non-fixed parts. For example,*.log
would ignore all.log
files like git.Additional context
If you have any suggestions or concerns, please let me know. And if you think this is feasible, I can quickly make a PR Draft.
The text was updated successfully, but these errors were encountered: