treeignore
Features
Exclude patterns from the Explorer/filetree panel.
The effect is similar to having explorer.excludeGitIgnore
enabled, but only affecting the Explorer/filetree panel.
Rules are applied to files.exclude in the workspaceFolder settings (.vscode/settings.json in whichever folder/folders the vscode instance is open in)
Disable a .treeignore file by adding #off
as the first row.
Example
these treeignores
├── .treeignore
│ mås1.txt
│ /mås3.*
│ dir1/.treeignore
└── dir1
└── .treeignore
mås2.txt
turns this
├── .treeignore
├── mås1.txt
├── mås2.txt
├── mås3.txt
└── dir1
├── .treeignore
├── mås1.txt
├── mås2.txt
└── mås3.txt
into this
├── .vscode/settings.json
│ {"files.exclude":{ "**/mås1.txt":true, "**/dir1/.treeignore":true, "mås3.*":true, "dir1/**/mås2.txt":true }}
├── .treeignore
├── mås2.txt
└── dir1
└── mås3.txt
Extension Settings
treeignore.enableEventListeners
: Enable/disable event listeners (onDidChangeConfiguration, onDidSaveTextDocument, onCreateFiles, onDeleteFiles, onRenameFiles). If disabled, use treeignore.updateTreeignore to read any changes in the .treeignore files.
treeignore.enableComments
: Enable/disable #comment
.
treeignore.enableMidRowComments
: Enable/disable mås.txt #comment
.
Commands
treeignore.updateTreeignore
: Find and parse .treeignore files.
treeignore.enable
: Enable .treeignore files for folders open in the vscode instance.
treeignore.disable
: Disable .treeignore files for folders open in the vscode instance.
Known Issues
- files.exclude doesnt support the prefix ! (negate previous pattern).
Release Notes
1.0.0
Initial release of treeignore