Skip to content

Commit e25594b

Browse files
committed
Optionally autoprompt after displaying find results
1 parent cd89674 commit e25594b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

preditor/gui/find_files.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ def find(self):
7171
self.finder.callback_matching = self.insert_found_text
7272
self.finder.callback_non_matching = self.insert_text
7373

74+
# Start fresh output line.
75+
window = self.parent().window() if self.parent() else None
76+
if window:
77+
window.console().startPrompt("")
78+
7479
self.insert_text(self.finder.title())
7580

7681
self.match_files_count = 0
@@ -91,6 +96,11 @@ def find(self):
9196
)
9297
)
9398

99+
# If user has Auto-prompt chosen, do so now.
100+
if window:
101+
if window.uiAutoPromptCHK.isChecked():
102+
window.console().startInputLine()
103+
94104
def find_in_editor(self, editor, path):
95105
# Ensure the editor text is loaded and get its raw text
96106
editor.__show__()

0 commit comments

Comments
 (0)