Skip to content

Quick Search: trigger on Enter and preview full script on row selection#69

Merged
alex-bochkov merged 2 commits intosql-searchfrom
codex/add-search-on-enter-key-press
Feb 14, 2026
Merged

Quick Search: trigger on Enter and preview full script on row selection#69
alex-bochkov merged 2 commits intosql-searchfrom
codex/add-search-on-enter-key-press

Conversation

@alex-bochkov
Copy link
Copy Markdown
Contributor

Motivation

  • Improve quick search UX by allowing the search to start with the Enter key from the search textbox.
  • Provide immediate context by populating the preview editor with the full object script when a result row is selected.

Description

  • Wired TextBox_SearchText KeyDown to TextBox_SearchText_KeyDown so pressing Enter runs the search flow.
  • Extracted the search flow into a shared RunSearchAsync() method and updated Button_Search_Click to call it for consistent behavior.
  • Added SelectionChanged handler on DataGrid_SearchResults to load the full object definition into SqlEditor.Text using ScriptObjectDefinition.GetText, with safe handling for JobStep rows and missing identifiers.
  • Added using System.Windows.Input; and minor XAML updates to hook the new event handlers.

Testing

  • Attempted to build the solution with dotnet build AxialSqlTools/AxialSqlTools.sln -c Debug and the build could not be executed in this environment because the dotnet CLI is not installed (bash: command not found: dotnet).
  • No other automated tests were run in this environment.

Codex Task

@alex-bochkov alex-bochkov merged commit f997383 into sql-search Feb 14, 2026
@alex-bochkov alex-bochkov deleted the codex/add-search-on-enter-key-press branch February 14, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant