#website #search #cli

app r-ss

a tool to quickly open your search website

2 releases

0.1.1 Nov 4, 2022
0.1.0 Nov 4, 2022

#66 in #website

Download history 24/week @ 2024-02-20 60/week @ 2024-02-27

84 downloads per month

MIT license

9KB
122 lines

RSS

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.

install

cargo install r-ss

Usage

Basic Usage

r-ss [...keywords]

# such like this
r-ss javascript array reduce # <- will open google.com with query "javascript array reduce"

Specific Website

r-ss -u <website-type> [...keywords]

# such like
r-ss -u git alexzhang1030 # <- will open github.com with query "alexzhang1030"

Config

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}

Default Support Website

[
  {
    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}',
  },
]

Dependencies

~6–19MB
~261K SLoC