# Allow to exclude files from worktrees \(\#3356\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/12b59daa1e55f47baba52f8106ff218166430ecc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 12b59daa1e55f47baba52f8106ff218166430ecc

Requested commit: 12b59daa1e55f47baba52f8106ff218166430ecc

Commit: 12b59daa1e55f47baba52f8106ff218166430ecc

Tree: b32d3ab179d6a0b9d0a5c49f54ec3acc065a03f8

Author: Kirill Bulatov

Committer: GitHub

## Message

````
Allow to exclude files from worktrees (#3356)

* Part of https://github.com/zed-industries/community/issues/70

Allows to fully remove from Zed certain files or file groups: no items
will be scanned or added into worktrees, so nothing will be shown in
project tree, project search and go to file would not see those,
corresponding FS events will be ignored.

One exclusion is .git files: those are still not shown or accessible by
default, yet tracked in the worktrees.

By default, is configured to 
```json
  "file_scan_exclusions": [
    "**/.git",
    "**/.svn",
    "**/.hg",
    "**/CVS",
    "**/.DS_Store",
    "**/Thumbs.db",
    "**/.classpath",
    "**/.settings"
  ],
```

* In addition, contains code preparations for "search in included files"
feature: new SearchOptions variant, search crate and RPC adjustments

Release Notes:

- Added `file_scan_exclusions` section to project settings to completely
ignore certain files in Zed
````

## Parents

- [7a8da8ce115b0a896cef1d5f4976295ce7ffaf8e](https://git.cafe/gitcafe/zed/commit/7a8da8ce115b0a896cef1d5f4976295ce7ffaf8e?format=markdown)

- [d352a63d9d5d9b0eba4ece72c5eb0cee7cc3ae5b](https://git.cafe/gitcafe/zed/commit/d352a63d9d5d9b0eba4ece72c5eb0cee7cc3ae5b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/12b59daa1e55f47baba52f8106ff218166430ecc?format=markdown)
