Skip to content

hacel/recent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 

Repository files navigation

recent.lua

Recently played menu

Logs played files to a history log file with an interactive 'recently played' menu that reads from the log. Allows for automatic or manual logging if you want a file bookmark menu instead.

Menu controls:

  • Default display hotkey is `
  • Keyboard:
    • UP/DOWN to move selection
    • ENTER to load highlighted entry
    • DEL to delete highlighted entry
    • 0-9 for quick selection
    • ESC to exit
  • Mouse (if turned on):
    • WHEEL_UP/WHEEL_DOWN to move selection
    • MBTN_MID to load highlighted entry
    • MBTN_RIGHT to exit

Modify settings through script-opts/recent.conf

  • Log path is history.log inside whatever config directory mpv reads
  • Disabling auto_save makes it only save with a keybind
    • No save key is bound by default, see script-opts
  • See comments in the script for more info

Play most recent one.

KEY                 script-binding recent/play-last

uosc integration

tomasklaen/uosc is required.

Menu - add following to input.conf.

KEY                 script-binding recent/display-recent          #! Recently played

Controls - add following to uosc.conf#controls.

command:history:script-message-to recent display-recent?Recently played

mpv-menu-plugin integration

mpv-menu-plugin is required.

Menu - add following to input.conf.

KEY                 script-binding recent/display-recent        #! Recently played  #@recent