fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
67a9d0877
master
1# Completions for mpc, used to control MPD from the command line 2 3set -l subcommands consume crossfade queued mixrampdb mixrampdelay next\ 4 pause play prev random repeat replaygain single seek seekthrough stop\ 5 toggle add insert clear crop del mv searchplay shuffle load lsplaylists\ 6 playlist rm save listall ls search search find findadd list stats mount\ 7 mount unmount outputs disable enable toggleoutput channels sendmessage\ 8 waitmessage subscribe idle idleloop version volume update rescan current 9 10# disable file completions 11complete -fc mpc 12 13complete -c mpc -s f -l format -d"Configure the format used to display songs" 14complete -c mpc -l wait -d"Wait for operation to finish (e. g. database update)" 15complete -c mpc -l range -d"Operate on a range" 16complete -c mpc -s q -l quiet -l no-status -d"Prevents the current song status from being printed" 17complete -c mpc -l verbose -d"Verbose output" 18complete -c mpc -l host -xd"The MPD server to connect to" 19complete -c mpc -s p -l port -xd"The TCP port of the MPD server to connect to" 20 21complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a consume -d"Toggle consume mode if state is not specified" 22complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a crossfade -d"Get and set current amount of crossfading" 23complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a queued -d"Show currently queued (next) song" 24 25complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a mixrampdb -d"Get/set volume level at which songs with MixRamp tags will be overlapped" 26complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a mixrampdelay -d"Get/set extra delay added computed from MixRamp tags" 27complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a next -d"Start playing next song on queue" 28complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a pause -d"Pause playing" 29complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a play -d"Start playing song-number specified" 30complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a prev -d"Start playing previous song" 31 32complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a random -d"Toggle random mode if state (on or off) is not specified" 33complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a repeat -d"Toggle repeat mode if state (on or off) is not specified" 34complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a replaygain -d"Set replay gain mode" 35complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a single -d"Toggle single mode if state (on or off) is not specified" 36complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a seek -d"Seek by hour, minute or seconds" 37complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a seekthrough -d"Seek relative to current position" 38complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a stop -d"Stop playing" 39complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a toggle -d"Toggle between play and pause" 40complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a add -d"Add a song from music database to queue" 41complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a insert -d"Add a song from music database to queue after current song" 42complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a clear -d"Empty queue" 43complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a crop -d"Remove all songs except for currently playing song" 44complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a del -d"Remove a queue number from queue" 45complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a mv -l move -d"Change position of song in queue" 46complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a searchplay -d"Search queue for a matching song and play it" 47complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a shuffle -d"Shuffle all songs on queue" 48complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a load -d"Load a file as queue" 49 50complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a lsplaylists -d"List available playlists" 51complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a playlist -d"List all songs in playlist" 52complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a rm -d"Delete a specific playlist" 53complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a save -d"Save playlist as file" 54complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a listall -d"List file from database" 55complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a ls -d"List all files/folders in directory" 56complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a search -d"Search for substrings in song tags" 57complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a search -d" Search with a filter expression" 58complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a find -d"Exact search with a filter expression" 59complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a findadd -d"Find and add results to current queue" 60complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a list -d"Return a list of all tags of given tag type" 61complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a stats -d"Display statistics about MPD" 62 63complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a mount -d"List all mounts" 64complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a mount -d"Create a new mount" 65complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a unmount -d"Remove a mount" 66 67complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a outputs -d"List all available outputs" 68complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a disable -d"Disable output(s)" 69complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a enable -d"Enable output(s)" 70complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a toggleoutput -d"Change status for given output(s)" 71 72complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a channels -d"List channels that other clients have subscribed to" 73complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a sendmessage -d"Send a message to specified channel" 74complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a waitmessage -d"Wait for at least one message on specified channel" 75complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a subscribe -d"Subscribe to specified channel and continuously receive messages" 76 77complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a idle -d"Wait until an event occurs" 78complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a idleloop -d"Keep waiting and printing events as they occur" 79complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a version -d"Report version of MPD" 80complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a volume -d"Set volume" 81 82complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a update -d"Scan for updated files in music directory" 83complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a rescan -d"Like update, but also rescans unmodified files" 84complete -c mpc -n"not __fish_seen_subcommand_from $subcommands " -a current -d"Show currently playing song" 85 86# Using '(mpc search filename (commandline -ct))' _might_ be faster for larger libraries 87complete -c mpc -n"__fish_seen_subcommand_from add insert" -a"(mpc listall)" 88complete -c mpc -n"__fish_seen_subcommand_from add insert" -n'string match -qr -- ^/ "$(commandline -xt)"' -F 89 90complete -c mpc -n"__fish_seen_subcommand_from playlist load" -a"(mpc lsplaylists)" 91complete -c mpc -n"__fish_seen_subcommand_from consume random repeat single" -a"on off" 92complete -c mpc -n"__fish_seen_subcommand_from replaygain" -a"off track album" 93 94# TODO: sticker subcommand