It would be nice to have an option to play a video/URL which is in clipboard — this would allow making a keybinding/shortcut which would make 'play in MPV' one-click option. See below:
mpv ""mpv --from-clipboard and play the videoFlag --from-clipboard should be added, which would basically append "<clipboard content>".
If such behaviour is already possible, please let me know because I couldn't find it in the mpv manual.
How about using mpv $(xclip -o).
Or if you don't have xclip but xsel installed, you can do mpv $(xsel -bo).
What I think might be useful thought is a play from clipboard keybinding for the pseudo-gui, mostly on Windows, since drag-and-dropping URLs can be a bit awkward for those people.
Thank you @j605 and @CounterPillow! Your suggestions work like charm!
I'll leave this open for now, but if somebody wants to close it, be my guest.
There's existing script for this: https://github.com/jonniek/mpv-scripts/raw/master/appendURL.lua (win/linux/mac)
Just changed last line to mp.add_key_binding("ctrl+v", "appendURL", append)
Most helpful comment
There's existing script for this: https://github.com/jonniek/mpv-scripts/raw/master/appendURL.lua (win/linux/mac)
Just changed last line to
mp.add_key_binding("ctrl+v", "appendURL", append)