Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Capitalize tooltip labels on buffer search (#18458)
Danilo Leal1c5be9de4e8c
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex 6e660a963b9..42b267c3c95 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -288,7 +288,7 @@ impl Render for BufferSearchBar {let focus_handle = focus_handle.clone();move |cx| {Tooltip::for_action_in(- "Toggle search selection",+ "Toggle Search Selection",&ToggleSelection,&focus_handle,cx,@@ -308,7 +308,7 @@ impl Render for BufferSearchBar {let focus_handle = focus_handle.clone();move |cx| {Tooltip::for_action_in(- "Select all matches",+ "Select All Matches",&SelectAllMatches,&focus_handle,cx,@@ -319,14 +319,14 @@ impl Render for BufferSearchBar {.child(render_nav_button(ui::IconName::ChevronLeft,self.active_match_index.is_some(),- "Select previous match",+ "Select Previous Match",&SelectPrevMatch,focus_handle.clone(),)).child(render_nav_button(ui::IconName::ChevronRight,self.active_match_index.is_some(),- "Select next match",+ "Select Next Match",&SelectNextMatch,focus_handle.clone(),))@@ -373,7 +373,7 @@ impl Render for BufferSearchBar {let focus_handle = focus_handle.clone();move |cx| {Tooltip::for_action_in(- "Replace next match",+ "Replace Next Match",&ReplaceNext,&focus_handle,cx,@@ -390,7 +390,7 @@ impl Render for BufferSearchBar {let focus_handle = focus_handle.clone();move |cx| {Tooltip::for_action_in(- "Replace all matches",+ "Replace All Matches",&ReplaceAll,&focus_handle,cx,@@ -442,7 +442,7 @@ impl Render for BufferSearchBar {div.child(IconButton::new(SharedString::from("Close"), IconName::Close).tooltip(move |cx| {- Tooltip::for_action("Close search bar", &Dismiss, cx)+ Tooltip::for_action("Close Search Bar", &Dismiss, cx)}).on_click(cx.listener(|this, _: &ClickEvent, cx| {this.dismiss(&Dismiss, cx)diff --git a/crates/search/src/search.rs b/crates/search/src/search.rsindex d13a12576b0..0ceb8e710b5 100644--- a/crates/search/src/search.rs+++ b/crates/search/src/search.rs@@ -53,10 +53,10 @@ bitflags! {impl SearchOptions {pub fn label(&self) -> &'static str {match *self {- SearchOptions::WHOLE_WORD => "Match whole words",- SearchOptions::CASE_SENSITIVE => "Match case sensitively",+ SearchOptions::WHOLE_WORD => "Match Whole Words",+ SearchOptions::CASE_SENSITIVE => "Match Case Sensitively",SearchOptions::INCLUDE_IGNORED => "Also search files ignored by configuration",- SearchOptions::REGEX => "Use regular expressions",+ SearchOptions::REGEX => "Use Regular Expressions",_ => panic!("{:?} is not a named SearchOption", self),}}