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

Support pasting in search menus #765

Closed
po5 opened this issue Nov 4, 2023 · 9 comments
Closed

Support pasting in search menus #765

po5 opened this issue Nov 4, 2023 · 9 comments

Comments

@po5
Copy link
Contributor

po5 commented Nov 4, 2023

Useful for things like #497.

@christoph-heinrich
Copy link
Contributor

Afaik the best clipboard script is https://github.com/CogentRedTester/mpv-clipboard, which we could use as a reference (or optional dependency).

@hooke007
Copy link
Contributor

hooke007 commented Nov 4, 2023

Nope, it's unnecessary. Just copy the code from console. The script you mentioned did the same work.

@christoph-heinrich
Copy link
Contributor

Nope, it's unnecessary. Just copy the code from console.

True, I forgot that it got that from console.

@tomasklaen
Copy link
Owner

That's a perfect job for ziggy! I'll extend it with set-clipboard and get-clipboard commands. That's going to be way more stable and instant, as opposed to spawning powershell scripts, which is really slow on windows.

@dyphire
Copy link
Contributor

dyphire commented Nov 4, 2023

That's a perfect job for ziggy! I'll extend it with set-clipboard and get-clipboard commands. That's going to be way more stable and instant, as opposed to spawning powershell scripts, which is really slow on windows.

I tested the clipboard function using the console on Windows and it doesn't seem to be slow. I'm curious about what the testing benchmark is.

@hooke007
Copy link
Contributor

hooke007 commented Nov 4, 2023

It doesn't respond the input immediately on Win. But it isn't slow for common usage.

@po5
Copy link
Contributor Author

po5 commented Nov 4, 2023

Powershell is slow to launch if it hasn't been launched recently.
I agree that a custom program would be more responsive, but it's also a lot of work. On Linux, there's no universal concept of a clipboard afaik. It's different on wayland and x11, and clipboard managers exist. Seems there's a go library for it :^)

@dyphire
Copy link
Contributor

dyphire commented Nov 4, 2023

Powershell is slow to launch if it hasn't been launched recently.

I can reproduce it.

@tomasklaen
Copy link
Owner

Yeah and even after powershell "warms up" it's still around half a second to paste (at least for me). With ziggy it's perceptually instant.

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

No branches or pull requests

5 participants