All Projects → rossy → mpv-repl

rossy / mpv-repl

Licence: ISC license
A graphical REPL for mpv input commands

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to mpv-repl

mpv-osc-morden
Another mpv osc script
Stars: ✭ 149 (+112.86%)
Mutual labels:  mpv, mpv-script
videoclip
Easily create videoclips with mpv.
Stars: ✭ 49 (-30%)
Mutual labels:  mpv, mpv-script
mpv-search-page
An in-window search page for mpv player
Stars: ✭ 32 (-54.29%)
Mutual labels:  mpv, mpv-script
mpvacious
Adds mpv keybindings to create Anki cards from movies and TV shows.
Stars: ✭ 286 (+308.57%)
Mutual labels:  mpv, mpv-script
immersive
Language learning mpv script for looking up words within mpv and generating Anki cards
Stars: ✭ 43 (-38.57%)
Mutual labels:  mpv, mpv-script
cfg
my dotfiles
Stars: ✭ 26 (-62.86%)
Mutual labels:  mpv, mpv-script
mpv crop script
A Lua script to take cropped screenshots in mpv, sans external dependencies
Stars: ✭ 77 (+10%)
Mutual labels:  mpv, mpv-script
mpv-gif-generator
Creates animated gifs using mpv hotkeys
Stars: ✭ 32 (-54.29%)
Mutual labels:  mpv, mpv-script
MPV lazy
🔄 mpv player 播放器折腾记录 windows conf ; 中文注释配置 快速帮助萌新入门 ; mpv-lazy 懒人包 win10 x64
Stars: ✭ 615 (+778.57%)
Mutual labels:  mpv, mpv-script
mpv-youtube-upnext
A userscript for MPV that allows you to play "up next"/recommended youtube videos ⏭️
Stars: ✭ 29 (-58.57%)
Mutual labels:  mpv, mpv-script
mpv-ytdlautoformat
A simple mpv script to auto change ytdl-format for Youtube and Twitch
Stars: ✭ 30 (-57.14%)
Mutual labels:  mpv, mpv-script
mpv-youtube-download
A userscript for MPV that allows you to download youtube audio and video with one key press 💾
Stars: ✭ 16 (-77.14%)
Mutual labels:  mpv, mpv-script
mpv-scripts
A collection of scripts for mpv player
Stars: ✭ 138 (+97.14%)
Mutual labels:  mpv, mpv-script
fancyline
Readline-esque library with fancy features
Stars: ✭ 72 (+2.86%)
Mutual labels:  repl
maverick
Web IDE and REPL for the Ink programming language, written in pure Ink on a self-hosted compiler toolchain
Stars: ✭ 26 (-62.86%)
Mutual labels:  repl
duct-figwheel-component
A component for running Figwheel
Stars: ✭ 18 (-74.29%)
Mutual labels:  repl
irb
interactive Ruby
Stars: ✭ 243 (+247.14%)
Mutual labels:  repl
bspl
Bit-Shift-Print Loop
Stars: ✭ 17 (-75.71%)
Mutual labels:  repl
mpv-trakt-sync-daemon
Python daemon that scrobbles watch progress from https://mpv.io to https://trakt.tv
Stars: ✭ 41 (-41.43%)
Mutual labels:  mpv
charm
A [ functional stack ] based language.
Stars: ✭ 26 (-62.86%)
Mutual labels:  repl

repl.lua

repl.lua is a REPL for mpv input commands. It is displayed on the video window. It also shows log messages.

screenshot

Keybindings

Key Action
` Show the REPL
Esc Hide the REPL
Enter Run the typed command
Shift + Enter Type a literal newline character
Ctrl + , Ctrl + Move cursor to previous/next word
, Navigate command history
PgUp Go to the first command in the history
PgDn Stop navigating command history
Insert Toggle insert mode
Shift + Insert Paste text (uses the primary selection on X11)
Tab Complete the command or property name at the cursor
Ctrl + C Clear current line
Ctrl + K Delete text from the cursor to the end of the line
Ctrl + L Clear all log messages from the console
Ctrl + U Delete text from the cursor to the beginning of the line
Ctrl + V Paste text (uses the clipboard on X11)
Ctrl + W Delete text from the cursor to the beginning of the current word

Commands

Command Action
script-message-to repl type "<text>" Show the REPL and pre-fill it with the provided text

Known issues

  • Pasting text is slow on Windows
  • Non-ASCII keyboard input doesn't work
  • The cursor keys move between Unicode code-points, not grapheme clusters

Disclaimer

This script was written with the hope that it would be useful, but the method of keyboard input is a bit of a hack (mpv wasn't designed to be a GUI toolkit,) so there are no guarantees that it will be useful or continue to work.

Copying

This script is released under the ISC licence.

The color scheme for log messages is Chris Kempson's Base16 Eighties

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].