# Fix project_panel::NewSearchInDirectory to work on files \(\#23696\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ff72c6358e6c5262527a8b79558e51c4fcd45066

Requested commit: ff72c6358e6c5262527a8b79558e51c4fcd45066

Commit: ff72c6358e6c5262527a8b79558e51c4fcd45066

Tree: c2942aebe0339a657aebd701b1c0064810e83c87

Author: William Blazer

Committer: GitHub

## Message

```
Fix project_panel::NewSearchInDirectory to work on files (#23696)

Closes #23383

This PR changes `project_panel::NewSearchInDirectory` to open project
search filtered by the parent directory when triggered on a file, rather
than doing nothing.

Release Notes:

- Improved `project_panel::NewSearchInDirectory` to search the parent
directory when triggered on a file
```

## Parents

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

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