@@ -92,9 +92,7 @@ object QuickSearch {
9292 shouldFocus = false
9393 }
9494
95- if (inputText(" ##search" , searchInput, ImGuiInputTextFlags .AutoSelectAll )) {
96- // Input changed, search will be updated below
97- }
95+ val searchChanged = inputText(" ##search" , searchInput, ImGuiInputTextFlags .AutoSelectAll )
9896
9997 // Handle escape key to close (simplified)
10098 if (ImGui .isKeyPressed(256 )) { // ImGuiKey.Escape
@@ -126,8 +124,9 @@ object QuickSearch {
126124 } else {
127125 text(" Results (${results.size} ):" )
128126 child(" SearchResults" , 400f , 300f , true ) {
129- results.forEach { result ->
130- if (selectable(" ${result.name} ##${result.type} " )) {
127+ results.forEachIndexed { index, result ->
128+ val isSelected = index == 0 // Highlight first result
129+ if (selectable(" ${result.name} ##${result.type} " , isSelected)) {
131130 result.action()
132131 close()
133132 ImGui .closeCurrentPopup()
@@ -144,6 +143,11 @@ object QuickSearch {
144143 }
145144 } else {
146145 textDisabled(" Type to search modules, settings, and commands..." )
146+ text(" " )
147+ text(" Examples:" )
148+ bulletText(" 'auto' - find AutoWalk, AutoTool, etc." )
149+ bulletText(" 'gui' - find ClickGUI, GuiSettings, etc." )
150+ bulletText(" 'speed' - find Speed module, speedSettings, etc." )
147151 }
148152
149153 separator()
@@ -152,6 +156,9 @@ object QuickSearch {
152156 close()
153157 ImGui .closeCurrentPopup()
154158 }
159+
160+ sameLine()
161+ textDisabled(" Tip: Press Shift+Shift to open quickly" )
155162 }
156163 }
157164
0 commit comments