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
@@ -699,6 +699,8 @@ pub struct SearchSettingsContent {
pub case_sensitive: Option<bool>,
pub include_ignored: Option<bool>,
pub regex: Option<bool>,
/// Whether to center the cursor on each search match when navigating.
pub center_on_match: Option<bool>,
}
#[skip_serializing_none]