Skip to content

Commit

Permalink
Merge pull request #12 from sergeydgr8/reddit
Browse files Browse the repository at this point in the history
Added demo examples
  • Loading branch information
issmirnov authored Jul 21, 2017
2 parents ec1a582 + 1e2eab5 commit eaf238f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,30 @@ For the advanced users: You might have to reload your webserver and `dnsmasq`, d

When you add a new shortcut, you need to indicate to your web browser that it's not a search term. You can do this by typing it in once with just a slash. For example, if you add a shortcut `g/z` -> github.com/issmirnov/zap, if you try `g/z` right away you will get taken to the search page. Instead, try `g/` once, and then `g/z`. This initial step only needs to be taken once per new shortcut.

#### Examples

You can configure your `c.yml` file endlessly. Here are some examples to get inspire your creativity:

```
g:
expand: github.com
z:
expand: github.com/issmirnov/zap
f:
expand: facebook.com
php:
expand: groups/2204685680/
r:
expand: reddit.com/r
```

With this config, you can use the following queries:

- `g/z` -> github.com/issmirnov/zap
- `f/zuck` -> facebook.com/zuck
- `f/php` -> facebook.com/groups/2204685680/
- `r/catsstandingup` -> reddit.com/r/catsstandingup

### Additional Information


Expand Down
2 changes: 2 additions & 0 deletions c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ g:
query: search?q=
z:
expand: issmirnov/zap
r:
expand: reddit.com/r

0 comments on commit eaf238f

Please sign in to comment.