# Add \`center_on_match\` option for search \(\#40523\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2131d88e4847970b3a2067bf33c1b746cd8956c7

Requested commit: 2131d88e4847970b3a2067bf33c1b746cd8956c7

Commit: 2131d88e4847970b3a2067bf33c1b746cd8956c7

Tree: b27aa8b6091b7af0c6d238a52c3822fc53500ef0

Author: Bob Mannino

Committer: GitHub

## Message

```
Add `center_on_match` option for search (#40523)

[Closes discussion
#28943](https://github.com/zed-industries/zed/discussions/28943)

Release Notes:

- Added `center_on_match` option to center matched text in view during buffer or project search.

---------

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

## Parents

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

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