MCPcopy
hub / github.com/shobrook/rebound / _get_selected_link

Method _get_selected_link

rebound/rebound.py:773–779  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

771
772
773 def _get_selected_link(self):
774 focus_widget, idx = self.content_container.get_focus() # Gets selected item
775 title = focus_widget.base_widget.text
776
777 for result in self.search_results:
778 if title == self._stylize_title(result): # Found selected title's search_result dict
779 return result["URL"]
780
781
782 def _stylize_title(self, search_result):

Callers 1

_handle_inputMethod · 0.95

Calls 1

_stylize_titleMethod · 0.95

Tested by

no test coverage detected