Skip to content

Commit 85193aa

Browse files
committed
boxes: Display edit_text on newline.
This commits displays `edit_text` on a newline to differentiate clearly what is searched for, add aesthetic appeal by using `\n > ` and better render long `edit_text`s. Tests updated.
1 parent e4faa3b commit 85193aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui_tools/test_boxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ def test_write_box_header_contents(
12471247

12481248

12491249
class TestPanelSearchBox:
1250-
search_caption = " Search Results "
1250+
search_caption = " Search Results \n > "
12511251

12521252
@pytest.fixture
12531253
def panel_search_box(self, mocker):

zulipterminal/ui_tools/boxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
18411841
self.panel_view.keypress(size, "esc")
18421842
elif is_command_key("ENTER", key) and not self.panel_view.empty_search:
18431843
self.panel_view.view.controller.exit_editor_mode()
1844-
self.set_caption([("filter_results", " Search Results "), " "])
1844+
self.set_caption([("filter_results", " Search Results \n"), " > "])
18451845
self.panel_view.set_focus("body")
18461846
if hasattr(self.panel_view, "log"):
18471847
self.panel_view.body.set_focus(0)

0 commit comments

Comments
 (0)