mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
completions: add mpv
This commit is contained in:
parent
f0d42ea602
commit
12ce66684e
1 changed files with 11 additions and 0 deletions
11
share/completions/mpv.fish
Normal file
11
share/completions/mpv.fish
Normal file
|
@ -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"
|
Loading…
Reference in a new issue