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 tip box: output to clipboard via .once |pbcopy #4793

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

tbbuck
Copy link
Contributor

@tbbuck tbbuck commented Feb 13, 2025

Hi there!

I stumbled across this mega useful method for quickly getting output rows from duckdb by calling .once |pbcopy - means that I can paste into other tools without having to faff around with the mouse selecting text and so on. While I'm pretty sure there's a similar method for Linux, my knowledge is out of date - same for Windows.

Thought it's worth highlighting for other people as it's one of those small little things that turns out to be awesome for day-to-day work. My use case is testing GeoJSON + WKT outputs on maps and matching.

Thanks
Tom.

@szarnyasg
Copy link
Collaborator

Hi, this is great, thanks! I think somesthing similar must definitely work for Linux using xsel or xclip. I'll leave that for future work and merge this now.

@szarnyasg szarnyasg merged commit f32f95b into duckdb:main Feb 14, 2025
4 checks passed
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