Skip to content

Commit

Permalink
Removed debug and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bantya committed Jan 6, 2019
1 parent 898824b commit d799d80
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/easysearch.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
# Keypirinha: a fast launcher for Windows (keypirinha.com)

import re
import keypirinha as kp
import keypirinha_util as kpu

class EasySearch(kp.Plugin):

SECTION = 'engines'

# g indian people
REGEX_INPUT = r'(\S+)\s(.+)'

# Google https://www.google.com/search?q=%s
REGEX_ENGINES = r'(\S+)\s(.+)'

ITEM_CAT = kp.ItemCategory.URL

def __init__(self):
super().__init__()
self._debug = True

def on_start(self):
self._gather_engines()
Expand All @@ -27,7 +21,6 @@ def on_catalog(self):
self.on_start()

def on_suggest(self, user_input, items_chain):
# urllib.parse.quote_plus(search_terms))
input = re.search(self.REGEX_INPUT, user_input)

if input is None:
Expand Down Expand Up @@ -73,7 +66,6 @@ def on_execute(self, item, action):
if item.category() != self.ITEM_CAT:
return

# kpu.execute_default_action(self, item, action)
kpu.web_browser_command(
private_mode=False,
new_window=False,
Expand Down

0 comments on commit d799d80

Please sign in to comment.