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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

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.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

Reply via email to