Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hacel/recent
https://github.com/hacel/recent
mpv-script
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hacel/recent
- Owner: hacel
- Created: 2018-12-26T18:05:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T15:52:36.000Z (5 months ago)
- Last Synced: 2024-06-30T10:21:56.292Z (5 months ago)
- Topics: mpv-script
- Language: Lua
- Size: 3.04 MB
- Stars: 67
- Watchers: 7
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mpv - recent - Recently (history) played menu. (Playback)
README
# 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.![](../assets/recent.png)
### 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.
```ini
KEY script-binding recent/play-last
```### uosc integration
**[tomasklaen/uosc](https://github.com/tomasklaen/uosc) is required.**
[Menu](https://github.com/tomasklaen/uosc#adding-items-to-menu) - add following to `input.conf`.
```ini
KEY script-binding recent/display-recent #! Recently played
```[Controls](https://github.com/tomasklaen/uosc#set-prop-value) - add following to `uosc.conf#controls`.
```ini
command:history:script-message-to recent display-recent?Recently played
```### mpv-menu-plugin integration
**[mpv-menu-plugin](https://github.com/tsl0922/mpv-menu-plugin) is required.**
[Menu](https://github.com/tsl0922/mpv-menu-plugin?tab=readme-ov-file#messages) - add following to `input.conf`.
```ini
KEY script-binding recent/display-recent #! Recently played #@recent
```