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
When opening a folder that contains a .gitignore, the tree sidebar still shows ignored paths like .git/, .amazonq/, node_modules/ (partially handled), build artifacts, etc.
Currently the only filtering is:
Hardcoded node_modules and .asar exclusion
Manual treePathExcludePatterns preference (empty by default)
Users have to manually configure exclude patterns for every project, which defeats the purpose — the project already declares what should be ignored in .gitignore.
Proposed Solution
When a folder is opened and a .gitignore file exists at the root:
Parse the .gitignore patterns
Apply them to the chokidar watcher's ignored callback alongside existing filters
Optionally: add a preference toggle to disable this behavior (default: enabled)
This should be additive to the existing treePathExcludePatterns — both filters apply.
Activity
Jocs commentedon Sep 7, 2026
I don’t quite understand why
gitignoreshould be reused in MarkText.