Summary: | zsh tab completion for pasuspender suggests -C (and other enhancements for pasuspender tab completion) | ||
---|---|---|---|
Product: | PulseAudio | Reporter: | pseyfert |
Component: | misc | Assignee: | pulseaudio-bugs |
Status: | RESOLVED FIXED | QA Contact: | pulseaudio-bugs |
Severity: | enhancement | ||
Priority: | medium | CC: | lennart |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | updated tab completion for pasuspender |
Description
pseyfert
2016-11-08 11:37:44 UTC
Thanks! I applied the patch to the "next" branch. Urgh, I realized the function can be written easier, without the ugly shift counting: _pasuspender_completion() { # parenthesis expressions specify which options should not get suggested afterwards # e.g. after -s, help and version will not get suggested, -- remains the only valid argument # after "--" external commands get suggested _arguments -C \ '(-)'{-h,--help}'[display help and exit]' \ '(-)--version[show version and exit]' \ '(-h --help --version -s --server)'{-s,--server=}'[name of server to connect to]:host:_hosts' \ '(-)--[program]:program: _command_names -e:*::program arguments: _normal' } Would you like to send another patch? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.