natural-harmonia-gropius / recent-menu

Recently played menu for mpv-player.
MIT License
33 stars 2 forks source link

Question on maximum number of entries #2

Closed Zabooby closed 1 year ago

Zabooby commented 1 year ago

Is there a maximum number of entries right now, would you be interested in maybe adding an option in recent-menu.conf to let us choose how many entries to list?

natural-harmonia-gropius commented 1 year ago

https://github.com/natural-harmonia-gropius/recent-menu/commit/b100f188eabb33e01eec20f4665250e1e69d9d67

script-opts-add=recent_menu-length=20

Zabooby commented 1 year ago

Now do I just make recent-menu.conf in the script-opts folder and add recent_menu-length=20?

natural-harmonia-gropius commented 1 year ago

length=20 I guess. Haven't used script-opts.

Zabooby commented 1 year ago

Tried length=4 in recent-menu.conf and it's not working.

image

natural-harmonia-gropius commented 1 year ago

recent_menu.conf This will work, but I'm going to remove the line

natural-harmonia-gropius commented 1 year ago

script-opts/recentmenu.conf length=4 should works

also script-binding recentmenu/open

Zabooby commented 1 year ago

Ok it's working now, just had to delete the old recent.json.

Is there a way I can move the recent.json to script-opts or does it have to be here: image

natural-harmonia-gropius commented 1 year ago

Change the path here, I'll add an option later. image

natural-harmonia-gropius commented 1 year ago

path=~~/script-opts/recent.json

Zabooby commented 1 year ago

Yup it works, thanks for making this script, I actually made a feature request for this exact feature a while ago tomasklaen/uosc/issues/404.