mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-11 15:53:37 +08:00
9da9f698df
(the alternative here is to explicitly check `command -q mpv`, but I'm going for the idea that a thing called "mpv" is going to be an mpv) Fixes #9426
12 lines
611 B
Fish
12 lines
611 B
Fish
set -l options (mpv --list-options 2>/dev/null)
|
|
complete -c mpv -l(string replace -fr '^\s*--([\w-]+).*' '$1' -- $options)
|
|
complete -c mpv -lno-(string replace -fr '^\s*--([\w-]+).*Flag.*' '$1' -- $options)
|
|
|
|
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-audio-display -d "Hide attached picture for 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"
|