Socket
Socket
Sign inDemoInstall

mitchellsimoens.file-tree-exclude

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mitchellsimoens.file-tree-exclude

Excludes folders from the Brackets file system to avoid performance problems using RegExp.


Version published
Maintainers
1
Created
Source

Brackets File Tree Exclude

Brackets extension for excluding folders and files from the file tree, find in files, and quick open.

This means that the files will be completely invisible to Brackets what will greatly improve overall performance of the editor.

This is great for cache folders, distribution/build folders and files, and package manager folders like node_modules and bower_components.

Based on works of:

  • zaggino/brackets-file-tree-exclude
  • JonathanWolfe/file-tree-exclude
  • gruehle/exclude-folders

How to install

Install via the Brackets extension manager.

Use brackets-npm-registry

Configure

Exclusions are defined globally by default inside the Brackets preferences file (Debug > Open preferences file).

Append or edit your configuration options there. (See below for example of defaults)

Or on a per project basis:

Create a .brackets.json in project root (it may already exist) and add your settings there.

Note

Project config completely redefine exclusion rules from global config.

Configuration defaults

{
    "mitchellsimoens.file-tree-exclude.excludeList": [
        ".git(?!ignore)",
        "dist",
        "bower_components",
        "node_modules"
    ]
}

How it Matches

It takes the excludeList array (either the default or if .brackets.json file exists in the project root) and turns each string into a regular expression. So if a string is "node_modules" then it will turn it into new RegExp("node_modules"). You can specify expressions as strings also. So if a string is "/foo/i", then it will turn it into new RegExp("foo", "i").

The resulting expressions are then matched against the realtive path fo the file in the tree.

Keywords

FAQs

Package last updated on 05 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc