fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

lengyijunFixes #8924 via `__fish_complete_suffix` overhaulaa65856ee

master
2.2 KiB28 linesraw
1# Castnow is a utility that can be used to play back media files on Chromecast devices.
2# See: https://github.com/xat/castnow
3
4set -l __fish_castnow_keys "space\tToggle\ between\ play\ and\ pause m\tToggle\ mute t\tToggle\ subtitles up\tVolume\ up down\tVolume\ down left\tSeek\ backward right\tSeek\ forward n\tNext\ in\ playlist s\tStop\ playback quit\tQuit"
5
6complete -c castnow -l tomp4 -d "Convert file to mp4 during playback"
7complete -c castnow -l device -d "Specify name of Chromecast device to be used" -x
8complete -c castnow -l address -d "Specify IP or hostname of Chromecast device" -x
9complete -c castnow -l subtitles -d "Path or URL to SRT or VTT file" -k -x -a "(__fish_complete_suffix .srt .vtt)"
10complete -c castnow -l subtitles-scale -d "Set subtitles font scale" -x
11complete -c castnow -l subtitles-color -d "Set subtitles font RGBA color" -x
12complete -c castnow -l subtitles-port -d "Specify port to be used for serving subtitles" -x
13complete -c castnow -l myip -d "Set local IP" -x
14complete -c castnow -l quiet -d "No output"
15complete -c castnow -l type -d "Explicitly set the mime-type" -a "(__fish_print_xdg_mimetypes | string match -r '^video/.*')" -x
16complete -c castnow -l bypass-srt-encoding -d "Disable automatic UTF-8 encoding of SRT subtitles"
17complete -c castnow -l seek -d "Seek to specified time (format: [hh:]mm:ss)" -x
18complete -c castnow -l loop -d "Loop over playlist, or file"
19complete -c castnow -l shuffle -d "Play in random order"
20complete -c castnow -l recursive -d "List all files in directories recursively"
21complete -c castnow -l volume-step -d "Set at which the volume changes" -x
22complete -c castnow -l localfile-port -d "Specify port to be used for serving local file" -x
23complete -c castnow -l transcode-port -d "Specify port to be used for serving transcoded file" -x
24complete -c castnow -l torrent-port -d "Specify port to be used for serving torrented file" -x
25complete -c castnow -l stdin-port -d "Specify port to be used for serving file read from stdin" -x
26complete -c castnow -l command -d "Execute key command(s)" -x -a "(__fish_append , $__fish_castnow_keys)"
27complete -c castnow -l exit -d "Exit when playback begins or --command completes"
28complete -c castnow -l help -d "Display help"