Skip to content

Commit 1118e81

Browse files
authored
Include hit count for keyword search (robotframework#2704)
1 parent fbd860f commit 1118e81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/robotide/ui/keywordsearch.py

+3
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ def _add_keyword_details(self):
208208
self._find_usages_button.SetBackgroundColour(Colour(self.color_secondary_background))
209209
self._find_usages_button.SetForegroundColour(Colour(self.color_secondary_foreground))
210210
self.Sizer.Add(self._find_usages_button, 0, wx.ALL, 3)
211+
self._results_text = wx.StaticText(self, -1, _('Results: %d') % 0)
212+
self.Sizer.Add(self._results_text, 0, wx.ALL, 3)
211213

212214
def _add_to_sizer(self, component):
213215
self.Sizer.Add(component, 1, wx.EXPAND | wx.ALL, 3)
@@ -279,6 +281,7 @@ def _populate_search(self):
279281
self._sort_order, self._get_search_text())
280282
self._update_keyword_selection()
281283
self._list.show_keywords(self._keywords, self._last_selected_kw)
284+
self._results_text.SetLabel(_('Results: %d') % len(self._keywords))
282285
self.Refresh()
283286

284287
def _get_search_criteria(self):

0 commit comments

Comments
 (0)