Skip to content

Commit 5202eb0

Browse files
committed
Fix broken web searches on Big Sur
Apparently something changed in behavior of `open` command on Big Sur so now it's not allowed to have spaces even though we're using quotes.
1 parent b1a17b7 commit 5202eb0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Here's an example of a simple web search script with two arguments:
105105
# @raycast.argument1 { "type": "text", "placeholder": "from city" }
106106
# @raycast.argument2 { "type": "text", "placeholder": "to city" }
107107

108-
open "https://www.google.com/search?q=flights from $1 to $2"
108+
open "https://www.google.com/search?q=flights%20from%20${1// /%20}%20to%20${1// /%20}"
109109
```
110110

111111
*💡Pro tip:* When typing alias + space, Raycast automatically will move focus to the first input field.

commands/web-searches/duck-duck-go.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# @raycast.packageName Web Searches
1111
# @raycast.argument1 { "type": "text", "placeholder": "query" }
1212

13-
open "https://duckduckgo.com/?q=$1"
13+
open "https://duckduckgo.com/?q=${1// /%20}"

commands/web-searches/google-search.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# @raycast.packageName Web Searches
1111
# @raycast.argument1 { "type": "text", "placeholder": "query" }
1212

13-
open "https://www.google.com/search?q=$1"
13+
open "https://www.google.com/search?q=${1// /%20}"

commands/web-searches/grep-app-search.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# @raycast.packageName Web Searches
1111
# @raycast.argument1 { "type": "text", "placeholder": "query" }
1212

13-
open "https://grep.app/search?q=$1"
13+
open "https://grep.app/search?q=${1// /%20}"

commands/web-searches/twitter-search.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# @raycast.packageName Web Searches
1111
# @raycast.argument1 { "type": "text", "placeholder": "query" }
1212

13-
open "https://twitter.com/search?q=$1&src=typed_query"
13+
open "https://twitter.com/search?q=${1// /%20}&src=typed_query"

0 commit comments

Comments
 (0)