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.
bash
cargo install r-ss
```bash r-ss [...keywords]
r-ss javascript array reduce # <- will open google.com with query "javascript array reduce" ```
```bash
r-ss -u
r-ss -u git alexzhang1030 # <- will open github.com with query "alexzhang1030" ```
config file in ~/.ss.yaml
example:
```yaml
default: google
extend: - name: bilibili rule: https://search.bilibili.com/all?keyword={keyword} ```
js
[
{
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}',
},
]