aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/zsh.pl
Commit message (Collapse)AuthorAge
* 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