From bf9fdf3059cb0afbbe91a0f17f4bf1eb206f8993 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 21 Jun 2023 16:16:07 +0200 Subject: check-new-issues: better autocompletion for '- pkg ...' command --- bin/check-new-issues | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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 = ' '.split() + else: + candidates = ['(unimportant)', '(low)', '(medium)', '(high)' ] #else: # XXX -- cgit v1.2.3