r-ss

Crates.ior-ss
lib.rsr-ss
version0.1.1
sourcesrc
created_at2022-11-04 04:08:27.276382
updated_at2022-11-04 16:31:02.926534
descriptiona tool to quickly open your search website
homepagehttps://github.com/hildxd/rss
repositoryhttps://github.com/hildxd/rss
max_upload_size
id704824
size27,721
(hildxd)

documentation

README

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}',
  },
]
Commit count: 12

cargo fmt