Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 2cfc81a

Browse files
committed
make input panel open with its contents selected
This changes makes the SearchInProject input panel act more like Sublime's native "Find" panel
1 parent c333798 commit 2cfc81a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

search_in_project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ def run(self, type="search"):
4949
os.chdir(pushd)
5050
view = self.window.active_view()
5151
selection_text = view.substr(view.sel()[0])
52-
self.window.show_input_panel(
52+
panel_view = self.window.show_input_panel(
5353
"Search in project:",
5454
not "\n" in selection_text and selection_text or self.last_search_string,
5555
self.perform_search, None, None)
56+
panel_view.run_command("select_all")
5657
elif type == "clear":
5758
self.clear_markup()
5859
else:

0 commit comments

Comments
 (0)