mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
completion: support --no prefixes for mpv flag options
This commit is contained in:
committed by
Fabian Homborg
parent
eee38836cf
commit
703a717660
@@ -3,8 +3,14 @@ for opt in $options
|
||||
complete -c mpv -l "$opt"
|
||||
end
|
||||
|
||||
set -l flag_options (string replace -fr '^\s*--([\w-]+).*Flag.*' '$1' -- (command mpv --list-options 2>/dev/null))
|
||||
for flag_opt in $flag_options
|
||||
complete -c mpv -l "no-$flag_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-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"
|
||||
|
||||
Reference in New Issue
Block a user