Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a shortcut to copy a query #311

Closed
nogweii opened this issue Sep 7, 2022 · 3 comments · Fixed by #420
Closed

Add a shortcut to copy a query #311

nogweii opened this issue Sep 7, 2022 · 3 comments · Fixed by #420
Assignees

Comments

@nogweii
Copy link

nogweii commented Sep 7, 2022

I'd like to easily and quickly grab a copy of a query that's been running for a long time in order to save it off before killing it. Even better if it was a keyboard shortcut that copied to my system clipboard.

Perhaps pyperclip can be of use?

@dhenson02
Copy link

I second this request!

@blogh
Copy link
Collaborator

blogh commented Sep 14, 2022

I have a patch to "zoom" on the query and display it full screen.
I didn't think about the clipboard. I will look into it.
Thanks for the issue.

@dlax
Copy link
Member

dlax commented Jun 4, 2024

Perhaps pyperclip can be of use?

I'm not sure this would be a good fit for pg_activity as it seems to me that pyperclip relies on graphical selections (e.g. xsel) whereas pg_activity is often used without a graphical environment (i.e. remotely through, e.g. ssh or on using sudo -iu postgres).

@dlax dlax closed this as completed in #420 Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants