2022-12-23 18:17:47 +08:00
|
|
|
set -l options (mpv --list-options 2>/dev/null)
|
2022-04-05 00:57:24 +08:00
|
|
|
complete -c mpv -l(string replace -fr '^\s*--([\w-]+).*' '$1' -- $options)
|
|
|
|
complete -c mpv -lno-(string replace -fr '^\s*--([\w-]+).*Flag.*' '$1' -- $options)
|
2021-08-14 08:07:59 +08:00
|
|
|
|
2020-02-28 19:25:52 +08:00
|
|
|
complete -c mpv -l start -x -d "Seek to given position (%, s, hh:mm:ss)"
|
|
|
|
complete -c mpv -l no-audio -d "Disable audio"
|
2021-08-14 08:07:59 +08:00
|
|
|
complete -c mpv -l no-audio-display -d "Hide attached picture for audio"
|
2020-02-28 19:25:52 +08:00
|
|
|
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"
|