diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-06-21 16:16:07 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-06-27 10:33:04 +0200 |
commit | bf9fdf3059cb0afbbe91a0f17f4bf1eb206f8993 (patch) | |
tree | e9b0ad114e20e01339edc963d77e4f630d3fc9f4 /bin | |
parent | fa1f2a6575954cde08db295182c36e409f5f99b6 (diff) |
check-new-issues: better autocompletion for '- pkg ...' command
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/check-new-issues | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues index cccddd03fc..55e0e3098a 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -714,8 +714,11 @@ def complete_line(text, state): if len(words) == 1 or (len(words) == 2 and being_completed): candidates = list(seen_pkgs.keys()) candidates += list(wnpp_to_candidates()) - else: + elif (len(words) == 2 and not being_completed) \ + or (len(words) == 3 and being_completed): candidates = '<end-of-life> <unfixed> <removed> <not-affected> <ignored> <postponed> <unimportant> <itp>'.split() + else: + candidates = ['(unimportant)', '(low)', '(medium)', '(high)' ] #else: # XXX |