From 7ebe865e012ae9ad893def1bdf498e1a081b02d4 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 21 Jun 2023 13:58:51 +0200 Subject: check-new-issues: add a skip command --- bin/check-new-issues | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/check-new-issues b/bin/check-new-issues index 7f4f3a0eec..c9c888ba48 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -285,7 +285,7 @@ def print_stats(): def print_commands(): print(''' - * blank line to skip to next issue + * s to skip to next issue * .h to repeat this help output of the list of commands * .fname to do "apt-file search name" * .cname to do "apt-cache search name" @@ -587,6 +587,9 @@ def present_issue(name): line = line.strip() if m := re.match(r"^\s*$", line): + continue + elif m := re.match(r"^s$", line): + # skip command break elif m := re.match(r"^\.c(.*)$", line): s = m.group(1).strip() @@ -684,7 +687,7 @@ def present_issue(name): return quit -completion_commands = ".f .c .w .m .r .g ! v e - .help n q d".split() +completion_commands = ".f .c .w .m .r .g ! v e - .help n s q d".split() def complete_line(text, state): response = None -- cgit v1.2.3