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

Open
nogweii opened this issue Sep 7, 2022 · 3 comments · May be fixed by #420
Open

Add a shortcut to copy a query #311

nogweii opened this issue Sep 7, 2022 · 3 comments · May be 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 dlax linked a pull request May 28, 2024 that will close this issue
@dlax dlax self-assigned this May 28, 2024
@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).

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