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>
This commit is contained in:
Bob Mannino
2025-11-03 21:17:09 +05:30
committed by GitHub
co-authored by Smit Barmase
parent 42149df0f2
commit 2131d88e48
8 changed files with 55 additions and 4 deletions
+6
View File
@@ -3163,6 +3163,12 @@ Non-negative `integer` values
- Setting: `search_wrap`
- Default: `true`
## Center on Match
- Description: If `center_on_match` is enabled, the editor will center the cursor on the current match when searching.
- Setting: `center_on_match`
- Default: `false`
## Seed Search Query From Cursor
- Description: When to populate a new search's query based on the text under the cursor.