From 16f50a6daa86c5fdde8052136c1b5ea7f5aa0a3c Mon Sep 17 00:00:00 2001 From: Quentin Spencer-Harper Date: Sat, 19 Sep 2015 13:47:45 +0100 Subject: [PATCH] Clearer results --- src/stackoverflow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stackoverflow.py b/src/stackoverflow.py index e056209..4fb0bcf 100644 --- a/src/stackoverflow.py +++ b/src/stackoverflow.py @@ -41,10 +41,11 @@ def search(query): numResults = numResults + 1 question = get_question_title(stackoverflowResponse) output_answer(url, question, answers[0], "Best answer for: ") + wf.add_item("Other Questions:", "(press TAB or ENTER to view answers)") else: wf.add_item( - "Question: " + re.search("/([^/]*)$", url).group(1).replace("-", " "), - "Press TAB or ENTER to view answers", + re.search("/([^/]*)$", url).group(1).replace("-", " "), + "", copytext = url, autocomplete = "answer:" + url, arg = url,