Skip to content

Fuzzy completion: SHOW QUERY PROFILE fingerprint completion #523

@apstndb

Description

@apstndb

Summary

Add fuzzy completion for SHOW QUERY PROFILE <fingerprint> to select from cached query profiles.

Background

SHOW QUERY PROFILE requires typing a fingerprint integer. The available profiles are already fetched by SHOW QUERY PROFILES.

Design

  • New completion type: fuzzyCompleteQueryProfile
  • Data source: cached/fetchable query profiles (same as SHOW QUERY PROFILES)
  • Uses fzfItem{Value, Label} (Fuzzy finder: introduce fzfItem for display/insert text separation #525) for display/insert separation:
    • Value (inserted): fingerprint
    • Label (displayed/searched): fingerprint with query text preview
  • May need network call to fetch profiles if not cached

Acceptance Criteria

  • SHOW QUERY PROFILE + Ctrl+T shows list of available query profiles
  • Each entry shows fingerprint and query text snippet for identification
  • Selected fingerprint is inserted into the statement

Prerequisites

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfuzzy-finderFuzzy finder (fzf) completion features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions