Skip to content

Commit ce7fcb9

Browse files
Merge pull request #964 from lemorage/rust-docs-search
Add Rust docs web search
2 parents 9a03ab6 + 44fbfcc commit ce7fcb9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

commands/web-searches/images/rust.png

4.85 KB
Loading
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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"

0 commit comments

Comments
 (0)