[pulseaudio-tickets] [Bug 98639] New: zsh tab completion for pasuspender suggests -C (and other enhancements for pasuspender tab completion)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 8 11:37:44 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98639

            Bug ID: 98639
           Summary: zsh tab completion for pasuspender suggests -C (and
                    other enhancements for pasuspender tab completion)
           Product: PulseAudio
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: misc
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: pseyfert at mathphys.fsk.uni-heidelberg.de
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Created attachment 127833
  --> https://bugs.freedesktop.org/attachment.cgi?id=127833&action=edit
updated tab completion for pasuspender

zsh tabcompletion of pasuspender suggests -C although -C is supposed to be an
option for _arguments and not a suggestion for pasuspender.

The fix is trivial by reordering
-    _arguments -S -A "-*" -C \
+    _arguments -C -S -A "-*" \

(the other completions in _pulseaudio already have the option in this order).

Additional suggestions for pasuspender:

The current completion keeps suggesting options, even if they won't do
anyhting, e.g.
pasuspender --help --v<tab>
will suggest --version.
This can be removed by adding '(-)' at the beginning of the argument.

As enhancement one can add "--" to the suggestions and afterwards switch to
standard tab completion to suggest programs and their completion. Here it gets
tricky as "--" should not get suggested after "--help" or "--version" but it
should get suggested after "--server=<hostname>".

patch attached.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20161108/a7fe5958/attachment.html>


More information about the pulseaudio-bugs mailing list