Skip to content

Commit

Permalink
Edited the google search plugin to include multi line searches
Browse files Browse the repository at this point in the history
  • Loading branch information
thealmightychuck committed Dec 1, 2023
1 parent 859404d commit f32a4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porcupine/plugins/google_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def google_search(tab: tabs.FileTab) -> None:
return

# Check multi line or text with only spaces
if selected_text.strip() and "\n" not in selected_text:
if selected_text.strip() and "\n" not in selected_text or selected_text.strip() and "\n" in selected_text:
url = f"https://www.google.com/search?q={urllib.parse.quote_plus(selected_text)}"
webbrowser.open_new_tab(url)

Expand Down

0 comments on commit f32a4f8

Please sign in to comment.