https://github.com/cogentredtester/mpv-lua-console
https://github.com/cogentredtester/mpv-lua-console
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cogentredtester/mpv-lua-console
- Owner: CogentRedTester
- License: mit
- Created: 2022-01-11T07:59:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-12T05:22:23.000Z (over 4 years ago)
- Last Synced: 2025-03-04T23:29:43.397Z (over 1 year ago)
- Language: Lua
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mpv-lua-console
A modified version of the in-built console.lua that provides a REPL to run Lua commands inside of mpv.
Currently in a completely unfinished place. Do not use.
## To Do List
- [X] Execute lines as lua code instead of mpv commands
- [X] Handle errors
- [X] Provide separate environment for executed code
- [X] Make all existing variables/functions local to prevent access
- [X] Make mp/mp.msg/mp.utils available in the environment
- [ ] Switch from using mpv message logs to a proper in-built logger
- [ ] Auto-complete variables/functions in the global environment
- [ ] Remove 'help' command, or add text from the lua manual.
- [ ] Auto-complete table entries
- [X] Provide shortcut for printing tables