Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.42k stars 137 forks source link

Todo Tree not exclude build directory #642

Closed hongz1 closed 1 year ago

hongz1 commented 2 years ago

Anyone knows how to exclude build directory? I am running react and todo-tree keep listing "build/static/js". I added node_modules and build but only build directory was listed.

"todo-tree.filtering.excludeGlobs": [ "**/node_modules/**", "**/build/**" ],

MarlonPassos-git commented 2 years ago

I don't know either, here in my project it is getting the "TODOs" from "node_modules". I don't know if it would be feasible to automatically ignore directories that are in .gitignore

image

benasvip commented 1 year ago

I created a PR for excluding node_modules properly by default: https://github.com/Gruntfuggly/todo-tree/pull/673, but for now you can use this setting:

"todo-tree.filtering.excludeGlobs": ["**/node_modules/*/**"],

@hongz1 If you want to exclude build directory try this:

"todo-tree.filtering.excludeGlobs": ["**/node_modules/*/**", "**/build/*/**"],
HishamMubarak commented 1 year ago

I created a PR for excluding node_modules properly by default: #673, but for now you can use this setting:

"todo-tree.filtering.excludeGlobs": ["**/node_modules/*/**"],

@hongz1 If you want to exclude build directory try this:

"todo-tree.filtering.excludeGlobs": ["**/node_modules/*/**", "**/build/*/**"],

Looking forward to this PR being merged.

Gruntfuggly commented 1 year ago

The PR has now been merged, so I'm going to close this. Please feel free to re-open if you still believe there is an issue.