History

fix dismiss tooltip for project search

Piotr Osiewicz committed 3 years ago

Commit d34da2d1 parent 22f630e3 files · +3 −1Browse files

Unified · Split

3 files
  1. crates/search/src/buffer_search.rs +1 −0
  2. crates/search/src/project_search.rs +1 −0
  3. crates/search/src/search_bar.rs +1 −1
crates/search/src/buffer_search.rs+1−0
@@ -288,6 +288,7 @@ impl View for BufferSearchBar { · 287 unmodified lines
288288 .with_child(search_button_for_mode(SearchMode::Text, cx))
289289 .with_child(search_button_for_mode(SearchMode::Regex, cx))
290290 .with_child(super::search_bar::render_close_button(
291+ "Dismiss Buffer Search",
291292 &theme.search,
292293 cx,
293294 |_, this, cx| this.dismiss(&Default::default(), cx),
crates/search/src/project_search.rs+1−0
@@ -1626,6 +1626,7 @@ impl View for ProjectSearchBar { · 1625 unmodified lines
16261626 .with_children(semantic_index)
16271627 .with_child(search_button_for_mode(SearchMode::Regex, cx))
16281628 .with_child(super::search_bar::render_close_button(
1629+ "Dismiss Project Search",
16291630 &theme.search,
16301631 cx,
16311632 |_, this, cx| {
crates/search/src/search_bar.rs+1−1
@@ -13,12 +13,12 @@ use crate::{ · 12 unmodified lines
1313 };
1414
1515 pub(super) fn render_close_button<V: View>(
16+ tooltip: &'static str,
1617 theme: &theme::Search,
1718 cx: &mut ViewContext<V>,
1819 on_click: impl Fn(MouseClick, &mut V, &mut EventContext<V>) + 'static,
1920 dismiss_action: Option<Box<dyn Action>>,
2021 ) -> AnyElement<V> {
21− let tooltip = "Dismiss Buffer Search";
2222 let tooltip_style = theme::current(cx).tooltip.clone();
2323
2424 enum CloseButton {}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t