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

Can I use the Clipboard like this picture? #41

Closed
candrapersada opened this issue Jan 22, 2024 · 8 comments
Closed

Can I use the Clipboard like this picture? #41

candrapersada opened this issue Jan 22, 2024 · 8 comments

Comments

@candrapersada
Copy link

image

@tsl0922
Copy link
Owner

tsl0922 commented Jan 22, 2024

EDIT: it's supported now.

No. The data in clipboard should be text (file path or url).

@tsl0922 tsl0922 closed this as completed Jan 22, 2024
@butterw
Copy link
Contributor

butterw commented Jan 22, 2024

Win10: Shift + Right-click: Copy as path

@candrapersada
Copy link
Author

[file] Cannot open file '"D:\driveid-156665-webrip-1080-terbit21-com-a-most-annoying-island-2019.mp4"': Invalid argument
Failed to open "D:\driveid-156665-webrip-1080-terbit21-com-a-most-annoying-island-2019.mp4".
Exiting... (Errors when loading file)

@tsl0922
Copy link
Owner

tsl0922 commented Jan 22, 2024

You are opening "D:\driveid-156665-webrip-1080-terbit21-com-a-most-annoying-island-2019.mp4", remove "

@butterw
Copy link
Contributor

butterw commented Jan 22, 2024

"On Windows 11, the Copy as path option appears in the context menu even if you don't hold the Shift key."
I think the format is: "filepath1\nfilepath2" so " would need to be trimmed in local function clipboard_cb(clipboard)

@tsl0922
Copy link
Owner

tsl0922 commented Jan 22, 2024

It's supported in the latest dev version now: https://github.com/tsl0922/mpv-menu-plugin/releases/tag/dev

@butterw
Copy link
Contributor

butterw commented Jan 22, 2024

  • Copy now works
  • Text path works with one file,
  • with multiple files: - works if the separator is LF not if CRLF (only plays the last file)
  • Windows, Copy as path: chokes because of the quotes.

@tsl0922
Copy link
Owner

tsl0922 commented Jan 23, 2024

\r in line breaks is supported now.

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

3 participants