https://github.com/a/go-search-me
Open your browser from terminal to search things
https://github.com/a/go-search-me
Last synced: 4 months ago
JSON representation
Open your browser from terminal to search things
- Host: GitHub
- URL: https://github.com/a/go-search-me
- Owner: A
- Created: 2014-10-10T10:34:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-14T18:33:17.000Z (over 11 years ago)
- Last Synced: 2025-03-24T18:05:16.031Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 188 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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/