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:
co-authored by
Smit Barmase
parent
42149df0f2
commit
2131d88e48
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user