File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Required parameters:
4
+ # @raycast.schemaVersion 1
5
+ # @raycast.title Search Rust Documentation
6
+ # @raycast.mode silent
7
+ #
8
+ # Optional parameters:
9
+ # @raycast.packageName Web Searches
10
+ # @raycast.icon images/rust.png
11
+ # @raycast.argument1 { "type": "text", "placeholder": "Name", "percentEncoded": true }
12
+ #
13
+ # Example query:
14
+ # Searching for `expect` will open this link in your browser:
15
+ # `https://doc.rust-lang.org/std/?search=expect`.
16
+ #
17
+ # Documentation:
18
+ # @raycast.author lemorage
19
+ # @raycast.authorURL https://raycast.com/lemorage
20
+ # @raycast.description Search Rust documentation
21
+
22
+ query=$( echo " $1 " | sed ' s/ /%20/g' )
23
+
24
+ open " https://doc.rust-lang.org/std/?search=$query "
You can’t perform that action at this time.
0 commit comments