Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
557 stars 37 forks source link

Add support for pasting from primary buffer on linux #37

Closed lukasfink1 closed 2 years ago

lukasfink1 commented 2 years ago

Under Linux there is (additionally to the regular clipboard buffer) a primary buffer. Text gets copied into it as soon as it’s being selected and it can be pasted by simply middle clicking. This PR adds support for pasting a url from said primary buffer by middle clicking.

Eisa01 commented 2 years ago

I believe it will be better to get rid of the specific variables and use one array for all the commands, though the only challenging part is linking it with a keybind based on OS. Alternatively for each OS there could be an array instead of string to be able to specify multiple commands

I think one array with key and value pairs will be the best approach, where the key is for OS

Eisa01 commented 2 years ago

Closed, until there is more need for configuring multiple paste commands for different OS.