Awesome
Recent menu
Recently played menu for mpv.
Getting started
uosc
tomasklaen/uosc is required.
Menu - add following to input.conf
.
# script-binding recentmenu/open #! Recently played
Controls - add following to uosc.conf - controls
.
command:history:script-message-to recentmenu open?Recently played
command_palette
stax76/mpv-scripts/command_palette is required.
z script-binding recentmenu/open #! Recently played
or
z script-message-to command_palette show-command-palette "Recent Files" # Recent Files
select
It’s a built-in script of mpv that was added in #14087.
Keybind - add following to input.conf
.
z script-binding recentmenu/open #! Recently played
Context Menu
tsl0922/mpv-menu-plugin/dyn_menu.lua is required.
Menu - add following to input.conf
.
MBTN_RIGHT context-menu
_ ignore #menu: Recently played #@recent
[!WARNING]
Due to the limitations of context-menu (mpv-menu-plugin), the menu may show unexpected results.
- The menu will not be updated in time when the file is deleted
- The menu will be inconsistent when multiple mpv instances work at the same time
General
Play most recent one.
KEY script-binding recentmenu/last
Use the specified menu provider
KEY script-message-to recentmenu open-recent-menu uosc
KEY script-message-to recentmenu open-recent-menu command-palette
KEY script-message-to recentmenu open-recent-menu select
Options
enabled = yes # whether to record current playing file, can be used with auto-profile
path = "~~/recent.json" # where the history is stored
length = 10 # number of items
ignore_same_series = yes # similar file names only record the most recent one
reduce_io = no # reduce the number of JSON reads and writes. but menu may show unexpected results.