<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - zsh tab completion for pasuspender suggests -C (and other enhancements for pasuspender tab completion)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98639">98639</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>zsh tab completion for pasuspender suggests -C (and other enhancements for pasuspender tab completion)
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>misc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pseyfert@mathphys.fsk.uni-heidelberg.de
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=127833" name="attach_127833" title="updated tab completion for pasuspender">attachment 127833</a> <a href="attachment.cgi?id=127833&action=edit" title="updated tab completion for pasuspender">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=98639&attachment=127833'>[review]</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>