-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshortwave.txt
62 lines (60 loc) · 3.07 KB
/
shortwave.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
> Lines beginning with `>` are comments.
> Comments and empty lines are ignored.
>
> Each command is defined on a single line comprised of:
>
> 1. a case-insensitive, alpha-numeric trigger followed
> by whitespace
> 2. a url followed by whitespace (if the url contains
> spaces they must be encoded as `%20`)
> 3. a short description
>
> Urls may contain the following replacement tokens:
>
> 1. `%s` is replaced by any search terms that were
> provided when a command is triggered.
> 2. `%r` is replaced by the url of the page you were on
> when Shortwave was invoked, eg. the `tr` trigger.
> 3. `%d` is replaced by just the domain of the url you were
> on when Shortwave was invoked, eg. the `gs` trigger.
> 4. `%t` is replaced by the page title of the url you were
> on when Shortwave was invoked, eg. the `e` trigger.
>
> A special `*` trigger can be used to define an untriggered
> search. For instance, adding the following:
>
> * http://www.google.com/search?q=%s Untriggered search
>
> to your custom command file would allow you to do a Google
> Search by entering just a search term (without the `g` trigger)
> in the Shortwave prompt.
>
> The following default triggers do not need to be redefined
> in your custom command file but they may be overridden. They
> can be eliminated entirely by adding the following to the
> top of your custom command file:
>
> > #kill-defaults
>
> Enjoy!
g http://www.google.com/search?q=%s Google Search
gs http://www.google.com/search?q=site:%d%20%s Search the current site
map http://www.google.com/maps?q=%s Google Maps
img http://www.google.com/images?q=%s Google Image Search
tr http://translate.google.com/translate?u=%r&tl=%s Translate the current page
d http://www.google.com/search?q=define:%s Google Define a word
w http://wikipedia.org/wiki/Special:Search/%s Wikipedia Search
php http://php.net/search.php?show=quickref&pattern=%s PHP Function Search
a http://smile.amazon.com/s/?url=search-alias%3Daps&field-keywords=%s&tag=iamsooobuyingthis-20 Amazon Search
mp3 http://smile.amazon.com/s/?url=search-alias%3Ddigital-music&field-keywords=%s&tag=iamsooobuyingthis-20 Amazon MP3 Search
imdb http://www.imdb.com/find?s=all&q=%s IMDB Search
nf http://www.netflix.com/search/%s Netflix Search
f http://flickr.com/search/?q=%s Flickr Search
t http://twitter.com/%s Twitter User
s http://search.twitter.com/search?q=%s Twitter Search (was Summize)
yt http://www.youtube.com/results?search_query=%s YouTube Search
v http://vimeo.com/videos/search:%s Vimeo Search
ip http://shortwaveapp.com/utils/ip.php IP Address
whois http://www.whois-search.com/whois/%s whois Search
e mailto:?subject=%t&body=%s%0A%0A%09%r%0A%0A Email link
peek https://peekier.com/#!%s Peekie