# file_finder: Add \`skip_focus_for_active_in_search\` setting \(\#27624\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 84e4891d544f14e7e22348b89ecaf261b44ca611

Requested commit: 84e4891d544f14e7e22348b89ecaf261b44ca611

Commit: 84e4891d544f14e7e22348b89ecaf261b44ca611

Tree: 12ee2c7aab2c0bed73c21d5c9360764c5b24dbfc

Author: Patrick

Committer: GitHub

## Message

```
file_finder: Add `skip_focus_for_active_in_search` setting (#27624)

Closes #27073

Currently, when searching for a file with Ctrl+P, and the first file
found is the active one, file_finder skips focus to the second file
automatically. This PR adds a setting to disable this and make the first
file always the focused one.

Default setting is still skipping the active file.

Release Notes: 

- Added the `skip_focus_for_active_in_search` setting for the file
finder, which allows turning off the default behavior of skipping focus
on the active file while searching in the file finder.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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