aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/zsh.pl
Commit message (Collapse)AuthorAge
* options: slightly improve filter help output for lavfi bridgeGravatar wm42018-02-03
| | | | | | | | | | | | | | --vf=help will now list libavfilter filters, and e.g. --vf=yadif=help will list libavfilter filter options. The latter is rather bare, because the AVOption API is really awful (holy shit how is it so bad), and would require us to handle _every_ option type manually. Alternatively we could call av_opt_show2(), which ffmpeg uses for help output in its CLI tools and which is much more detailed. But it's rather foreign and forces output through av_log(), so I don't really want to use it.
* TOOLS: change license of some scripts involved in build to LGPLGravatar wm42017-06-24
| | | | | wscript calls them directly, and thus are probably part of the build system. They seem to be fully covered by relicensing agreements.
* TOOLS/zsh.pl: don't leak regex match variablesGravatar Philip Sequeira2017-03-06
|
* TOOLS/zsh.pl: don't filter files by extensionGravatar Philip Sequeira2016-09-10
| | | | | | | Closes #2273. See that issue for explanation/discussion. I'll add examples on how to filter in your own config to the wiki soon: https://github.com/mpv-player/mpv/wiki/Zsh-completion-customization
* TOOLS/zsh.pl: die if we can't parse main optionsGravatar Philip Sequeira2016-09-10
| | | | | | | | | | | | | | | | This will catch cases where mpv runs without error, but the --list-options output isn't what we expect. Otherwise, we'll make a broken completion file that will result in cryptic errors when pressing tab, like: _mpv:18: command not found: *:files:->mfiles That's been the case for most of the zsh completion issues we've had reported, that I can remember. Also make uninitialized variable access fatal so that failures to parse other options will also make the script die eventually, albeit with a less nice message.
* TOOLS/zsh.pl: add m4a to zsh completion filetype listGravatar wgmk2016-08-26
|
* TOOLS/zsh.pl: add .f4v extension in zsh completionsGravatar Yen Chi Hsuan2016-05-27
|
* TOOLS/zsh.pl: complete --audio-deviceGravatar Philip Sequeira2016-04-16
|
* TOOLS/zsh.pl: properly escape last changeGravatar Philip Sequeira2016-04-08
| | | | | | I'm an idiot. Fixes #3032.
* TOOLS/zsh.pl: don't complete URLs by defaultGravatar Philip Sequeira2016-04-08
| | | | | | | ...unless no files match. Fixes #2892. To get the old behaviour back, use something like: zstyle ':completion:*:*:mpv:*' tag-order
* TOOLS/zsh.pl: add .wv extension in zsh completionsGravatar Martin Herkt2016-03-26
|
* TOOLS/zsh.pl: add .opus extension in zsh completionsGravatar Eric G2015-12-29
|
* TOOLS/zsh.pl: only check the actual exit code when calling mpvGravatar Philip Sequeira2015-09-20
| | | | | Ignore the other bits of $?. Apparently they can be set even if the command succeeded.
* TOOLS/zsh.pl: die loudly if mpv fails to runGravatar Philip Sequeira2015-07-19
|
* TOOLS/zsh.pl: complete multiple values for ao, vo, af, vfGravatar Philip Sequeira2015-03-31
| | | | It still doesn't deal with sub-options, but that's for another day.
* TOOLS/zsh.pl: cosmeticsGravatar Philip Sequeira2015-03-31
|
* TOOLS/zsh.pl: use --no-config when calling mpvGravatar Philip Sequeira2015-03-31
|
* TOOLS/zsh.pl: complete options based on typesGravatar Philip Sequeira2015-01-06
| | | | | | | | | | No more equals signs for options that don't take values. Complete values for options with preset choices. Complete --no-whatever where applicable. Fixes #997.
* TOOLS/zsh.pl: complete options that take file namesGravatar Philip Sequeira2014-09-13
|
* TOOLS/zsh.pl: protect global environmentGravatar Philip Sequeira2014-08-17
|
* TOOLS/zsh.pl: fix a ret that hadn't been changed to rcGravatar Philip Sequeira2014-08-17
|
* TOOLS/zsh.pl: complete profilesGravatar Philip Sequeira2014-08-17
| | | | Implemented in shell, because it has to be done at runtime.
* TOOLS/zsh.pl: properly set the return valueGravatar Alessandro Ghedini2014-08-13
| | | | | | The previous commit made the completion script always return non-zero, even when a match is found. This explicitly sets the return value to zero whenever a match is found but defaults to non-zero in case nothing is matched.
* TOOLS/zsh.pl: properly return non-zero when no matches are foundGravatar c_142014-08-13
| | | | | | | | Returning a non-zero value signals to the zsh completion system that no matches were added by the script so that it can try the user-defined matchers (e.g. those defined with matcher-list). Fixes #1008.
* TOOLS/zsh.pl: complete URL schemes based on --list-protocolsGravatar Alessandro Ghedini2014-07-03
|
* TOOLS/zsh.pl: sort options in reverse order by lengthGravatar Alessandro Ghedini2014-07-03
| | | | | This stops options that are prefixes of other options from blocking completion of values for the longer ones.
* TOOLS/zsh.pl: untabifyGravatar Philip Sequeira2014-07-03
|
* TOOLS/zsh.pl: fix _arguments lineGravatar Philip Sequeira2014-07-03
| | | | | | | | | Don't use _x_arguments, as we don't support X arguments. Get rid of -s, because we don't support multiple single-letter options in one argument. Add -S, because we ignore options after "--".
* TOOLS/zsh.pl: don't consume extra argumentsGravatar Philip Sequeira2014-07-03
| | | | | | | | | | | | Completion now uses "--opt=value" instead of "--opt value". Once the user presses space and starts a new argument, the option just completed is out of the picture, whether or not it was given an argument. This handles options with no arguments or optional arguments much better; previously, completing such an option would effectively disable completion for the next argument. Custom completed options such as "--ao" and friends will no longer claim to consume an extra argument.
* TOOLS/zsh.pl: escape all colons in option descriptionsGravatar Philip Sequeira2014-07-03
|
* TOOLS: add script for generating a zsh completion scriptGravatar Alessandro Ghedini2014-06-08
As discussed in #775