Skip to content

Copy SQL to Clipboard UX - #59

Merged
RandomFractals merged 5 commits into
mainfrom
copy-sql-to-clipboard
Feb 8, 2023
Merged

RandomFractals merged 5 commits into
mainfrom
copy-sql-to-clipboard

Conversation

@RandomFractals

@RandomFractals RandomFractals commented Feb 8, 2023 •

Copy link
Copy Markdown
Collaborator

Adds Copy SQL to Clipboard from the active SQL Preview (#55).

This PR adds Copy icon button to the Prql editor and Sql Preview, and copies generated SQL output from the Preview panel to vscode clipboard.

Brief demo:

prql-sql-copy-to-clipboard

- save prql.sql output in workspaceState
- set prql.sql context value for command when clauses
- show copy sql to clipboard menu icon when prql editor or sql preview are active
- use new prql.sqlPreviewActive flag in copy when clause
- add clear sql context and reset it on webview and active editor state changes
@max-sixty

Copy link
Copy Markdown
Member

Looks great @RandomFractals !

@RandomFractals
RandomFractals merged commit d690824 into main Feb 8, 2023
@RandomFractals
RandomFractals deleted the copy-sql-to-clipboard branch February 8, 2023 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants