Skip to content

Feature suggestion: Execute query text within code blocks in markdown #61

@cou929

Description

@cou929

Thank you for this great project! It has been incredibly useful for my workflow.

Would it be useful to allow running queries directly from code blocks in Markdown when the cursor is inside one?

For example

# Analysis Report  

Some context about the data.  

` ` `sql
SELECT user_id, COUNT(*)  
FROM events  
WHERE event_type = 'purchase'  
GROUP BY user_id;  
` ` `

If the cursor is inside the SQL code block and execute run query, the query should be extracted and executed.

I often perform ad-hoc investigations using BigQuery and document findings in Markdown to share on GitHub. It would be much more efficient if I could run queries directly from within the Markdown report.

Would this be a valuable addition? Looking for feedback and thoughts! I can create a PR for this feature if it makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions