Skip to content

Commit 08a58ff

Browse files
authored
Update README.md
1 parent 109536c commit 08a58ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Use `argument[1..3]` metadata to specify custom arguments that will be displayed
8989
| type | Input type. For now only "text" value available. | Yes | 1.2.0+ |
9090
| placeholder | Placeholder for the input field. | Yes | 1.2.0+ |
9191
| optional | Set to `true` if you want to mark argument as optional. When not provided, argument is considered to be required (Raycast will not allow to execute the script if argument input is empty) | No | 1.3.0+ |
92+
| percentEncoded| Set to `true` if you want Raycast to perform percent encoding on the argument value before passing it to the script. Can be handy for scripts that pass argument directly to URL query | No | 1.4.0+ |
9293

9394
**Maximum number of arguments:** 3 (if you feel it's not enough for your use case, please let us know via feedback or in the [Slack community](https://www.raycast.com/community))
9495

@@ -104,10 +105,10 @@ Here's an example of a simple web search script with two arguments:
104105
# Optional parameters:
105106
# @raycast.icon 🛩
106107
# @raycast.packageName Web Searches
107-
# @raycast.argument1 { "type": "text", "placeholder": "from city" }
108-
# @raycast.argument2 { "type": "text", "placeholder": "to city", "optional": true }
108+
# @raycast.argument1 { "type": "text", "placeholder": "from city", "percentEncoded": true }
109+
# @raycast.argument2 { "type": "text", "placeholder": "to city", "optional": true, "percentEncoded": true }
109110

110-
open "https://www.google.com/search?q=flights%20from%20${1// /%20}%20to%20${2// /%20}"
111+
open "https://www.google.com/search?q=flights%20from%20$1%20to%20$2"
111112
```
112113

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

0 commit comments

Comments
 (0)