-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #964 from lemorage/rust-docs-search
Add Rust docs web search
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Required parameters: | ||
# @raycast.schemaVersion 1 | ||
# @raycast.title Search Rust Documentation | ||
# @raycast.mode silent | ||
# | ||
# Optional parameters: | ||
# @raycast.packageName Web Searches | ||
# @raycast.icon images/rust.png | ||
# @raycast.argument1 { "type": "text", "placeholder": "Name", "percentEncoded": true } | ||
# | ||
# Example query: | ||
# Searching for `expect` will open this link in your browser: | ||
# `https://doc.rust-lang.org/std/?search=expect`. | ||
# | ||
# Documentation: | ||
# @raycast.author lemorage | ||
# @raycast.authorURL https://raycast.com/lemorage | ||
# @raycast.description Search Rust documentation | ||
|
||
query=$(echo "$1" | sed 's/ /%20/g') | ||
|
||
open "https://doc.rust-lang.org/std/?search=$query" |