Crates.io | r-ss |
lib.rs | r-ss |
version | 0.1.1 |
source | src |
created_at | 2022-11-04 04:08:27.276382 |
updated_at | 2022-11-04 16:31:02.926534 |
description | a tool to quickly open your search website |
homepage | https://github.com/hildxd/rss |
repository | https://github.com/hildxd/rss |
max_upload_size | |
id | 704824 |
size | 27,721 |
a rust version ss
ss ss means "Search, Search" Just type something, ss will open corresponding website with your input keywords in your default browser.
cargo install r-ss
r-ss [...keywords]
# such like this
r-ss javascript array reduce # <- will open google.com with query "javascript array reduce"
r-ss -u <website-type> [...keywords]
# such like
r-ss -u git alexzhang1030 # <- will open github.com with query "alexzhang1030"
config file in ~/.ss.yaml
example:
# set default website [google, baidu]
default: google
# set extends website
extend:
- name: bilibili
rule: https://search.bilibili.com/all?keyword={keyword}
[
{
name: 'baidu',
rule: 'https://www.baidu.com/s?wd={keyword}',
},
{
name: 'google',
rule: 'https://www.google.com/search?q={keyword}',
},
{
name: 'mdn',
rule: 'https://developer.mozilla.org/zh-CN/search?q={keyword}',
},
{
name: 'npm',
rule: 'https://www.npmjs.com/search?q={keyword}',
},
{
name: 'git',
rule: 'https://github.com/search?q={keyword}',
},
]