# Allow opening files without project entries \(\#3497\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c2d3e74ffb126b70dbc6b470984c948d27649b38

Requested commit: c2d3e74ffb126b70dbc6b470984c948d27649b38

Commit: c2d3e74ffb126b70dbc6b470984c948d27649b38

Tree: 31be4f1fbc4dc4849b0cf445d2ed6a7650f30066

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Allow opening files without project entries (#3497)

Addresses
https://zed-industries.slack.com/archives/C04S5TU0RSN/p1701428432093989
by allowing to open a buffer without a corresponding project `Entry`.
This means that now, we can remove the "fake worktree" requirement and
open files without creating any (the PR does not do this step yet, but
prepares the code for it).

In addition, the PR fixes glob matching code and adds more tests on
excluded files queries.

Release Notes:

- Fixed search query inclusions/exclusions working incorrectly
- Fixed excluded files being opened via CLI and failing or spoiling
project tree view
```

## Parents

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

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

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