Skip to content

Commit 8d75162

Browse files
committed
Add stream and topic search context.
1 parent faad803 commit 8d75162

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

zulipterminal/ui_tools/boxes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,13 @@ def __init__(
969969
) -> None:
970970
self.panel_view = panel_view
971971
self.search_command = search_command
972-
self.search_text = f" Search [{', '.join(keys_for_command(search_command))}]: "
972+
if search_command == "SEARCH_STREAMS" or search_command == "SEARCH_TOPICS":
973+
search_item = self.search_command.split("_")[1].lower()
974+
self.search_text = f" Search {search_item} [{', '.join(keys_for_command(search_command))}]: " # noqa: E501
975+
else:
976+
self.search_text = (
977+
f" Search [{', '.join(keys_for_command(search_command))}]: "
978+
)
973979
self.search_error = urwid.AttrMap(
974980
urwid.Text([" ", INVALID_MARKER, " No Results"]), "search_error"
975981
)

0 commit comments

Comments
 (0)