Skip to content

Add buttons in the margin of query editor to run individual queries #768

@james-whiteside

Description

@james-whiteside

Problem to Solve

Currently, the only way to run a single query in a multi-query file open in the query editor is to highlight the query and select the Run Selection option from the right-click menu (or use the keyboard shortcut associated with that option). This is pretty clunky UX, and many users (myself included) do not initially realise running part of a file is an option as it is not signposted anywhere.

Proposed Solution

As Studio already parses multi-query files to issue each query via an individual API call, the work is already being done to identify separate queries. The first line of each query could be annotated with a button in the margin in order to run individually. This would be very similar to the JetBrains approach:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions