Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/a/go-search-me

Open your browser from terminal to search things
https://github.com/a/go-search-me

Last synced: 6 days ago
JSON representation

Open your browser from terminal to search things

Awesome Lists containing this project

README

        

# Search me

Open your browser from terminal to search things.

## Usage

### Syntax

```
search-me [engine] and things to search
```

### Examples

```
search-me ddg vim screencast !yt
search-me google vim screencast
search-me vim screencast
```

#### Engines

- main: `http://google.com/`
- google: `http://google.com/`
- ddg: `https://duckduckgo.com/`

### Define your engines

See [config_example][1]. Feel free to place your favorite search engines
to `~/.search.json`:

```
engine-name http://example.com/?q=%s
```

Also, you can redefine `main` engine, that used for no engines matched. Just
add to your `~/.search`:

```
main http://best-search.ever/?q=%s
```

### Aliases

You can alias your favorite engines. For example

```bash
alias ddg=search-me ddg
alias google=searh-me google
alias jquery=search-me jquery
```

### Dotfiles

You can save your favorite search engines into [dotfiles][2] to never miss it!

### Development

```
go get
go run search.go ddg adventure time !v
```

[1]: https://github.com/shuvalov-anton/go-search-me/blob/master/config_example
[2]: http://dotfiles.github.io/