diff --git a/search.py b/search.py index ddcc271..4b9f587 100755 --- a/search.py +++ b/search.py @@ -24,7 +24,7 @@ def __init__(self, engine="default"): self.search_url = self.settings.get(self.engine, self.default_url) def search(self, term=pyperclip.paste()): - """Search""" + """Search passed term or clipboard value""" webbrowser.open(self.search_url + term) def engines(self): @@ -32,6 +32,12 @@ def engines(self): for name in self.settings: print(name) + def all(self, term=pyperclip.paste()): + """Search using all defined search engines""" + for key, values in self.settings.items(): + if key != "default": + webbrowser.open(values + term) + if __name__ == "__main__":