From 12ce66684ed15c59861c778440314d1313cf671e Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Fri, 28 Feb 2020 20:25:52 +0900 Subject: [PATCH] completions: add mpv --- share/completions/mpv.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 share/completions/mpv.fish diff --git a/share/completions/mpv.fish b/share/completions/mpv.fish new file mode 100644 index 000000000..802b24e05 --- /dev/null +++ b/share/completions/mpv.fish @@ -0,0 +1,11 @@ +set -l options (string replace -fr '^\s*--([\w-]+).*' '$1' -- (command mpv --list-options 2>/dev/null)) +for opt in $options + complete -c mpv -l "$opt" +end + +complete -c mpv -l start -x -d "Seek to given position (%, s, hh:mm:ss)" +complete -c mpv -l no-audio -d "Disable audio" +complete -c mpv -l no-video -d "Disable video" +complete -c mpv -l fs -d "Fullscreen playback" +complete -c mpv -l sub-file -r -d "Specify subtitle file" +complete -c mpv -l playlist -r -d "Specify playlist file"