Skip to content

Add search functionality to Query and Output panels #875

@objectiveous

Description

@objectiveous

Summary

Add built-in search capabilities to both the Query editor and Output result panels in TypeDB Studio to improve navigation and analysis of large queries and result sets.

Problem

Currently, TypeDB Studio 3.4.1 lacks search functionality within the Query and Output panels, making it difficult to:

  • Find specific text within long TypeQL queries
  • Locate specific results in large output datasets
  • Navigate efficiently through query results
  • Quickly identify relevant information in complex outputs

Proposed Solution

Query Panel Search

  • Find/Replace functionality: Standard Ctrl+F/Cmd+F to search within query text
  • Regex support: Option to use regular expressions for advanced pattern matching
  • Case sensitivity toggle: Option for case-sensitive/insensitive searches
  • Highlight matches: Visual highlighting of all search matches
  • Navigation controls: Next/Previous buttons to jump between matches

Output Panel Search

  • Text search: Search within query result text/JSON output
  • Column filtering: For tabular results, ability to filter by column values
  • Result highlighting: Highlight matching text in output
  • Search persistence: Keep search active when switching between query executions
  • Export filtered results: Option to export only search-matched results

Use Cases

  1. Large schema analysis: Finding specific entity types or relations in complex schema queries
  2. Data exploration: Searching for specific attribute values in large datasets
  3. Query debugging: Quickly locating specific parts of complex TypeQL queries
  4. Result analysis: Finding patterns or specific values in query outputs

Implementation Suggestions

  • Use standard keyboard shortcuts (Ctrl+F/Cmd+F) for consistency
  • Integrate with existing text editor functionality
  • Add search toolbar/panel similar to other IDEs
  • Maintain search state across query executions

Additional Context

  • Version: TypeDB Studio 3.4.1
  • Similar functionality exists in most text editors and database tools
  • Would significantly improve user experience for complex queries and large result sets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions