aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar dngfx2018-09-08 22:53:31 +0100
committerGravatar dongfix2018-09-08 22:53:31 +0100
commit69543c04db7e0612d161e6dd6ce91ce5d5cf477a (patch)
treefde883090e9ac13616fd2f49f9b2e1e9c62b5d4d /modules
parentClean up combining new.channel and __init__ channel bootstrapping (diff)
signature
Make google.py show the search term in the results.
Diffstat (limited to 'modules')
-rw-r--r--modules/google.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/google.py b/modules/google.py
index 99566ebe..f7ef398f 100644
--- a/modules/google.py
+++ b/modules/google.py
@@ -22,8 +22,8 @@ class Module(object):
"num": 1, "gl": "gb"}, json=True)
if page:
if "items" in page and len(page["items"]):
- event["stdout"].write(page["items"][0][
- "link"])
+ event["stdout"].write("(" + Utils.bold(phrase) + ") " \
+ + page["items"][0]["link"])
else:
event["stderr"].write("No results found")
else: