forked from ttscoff/searchlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker.searchlink.config
101 lines (88 loc) · 3.53 KB
/
docker.searchlink.config
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# set to true to have an HTML comment included detailing any errors
debug: true
# set to true to have an HTML comment included reporting results
report: true
# use Notification Center to display progress
notifications: false
# when running on a file, back up original to *.bak
backup: false
# change this to set a specific country for search (default US)
country_code: US
# set to true to force inline Markdown links
inline: false
# set to true to include a random string in reference titles.
# Avoids conflicts if you're only running on part of a document
# or using SearchLink multiple times within a document
prefix_random: true
# set to true to add titles to links based on the page title
# of the search result
include_titles: false
# If the link text is left empty, always insert the page title
# E.g. [](!g Search Text)
empty_uses_page_title: true
# confirm existence (200) of generated links. Can be disabled
# per search with `--v`, or enabled with `++v`.
validate_links: true
# Formatting for social links, use %service%, %user%, and %url%
# E.g. "%user% on %service%" => "ttscoff on Twitter"
# "%service%/%user%" => "Twitter/ttscoff"
# "%url%" => "twitter.com/ttscoff"
social_template: "%service%/%user%"
# append affiliate link info to iTunes urls, empty quotes for none
# example:
# itunes_affiliate = "&at=10l4tL&ct=searchlink"
itunes_affiliate: "&at=10l4tL&ct=searchlink"
# to create Amazon affiliate links, set amazon_partner to:
# [tag, camp, creative]
# Use the amazon link tool to create any affiliate link and examine
# to find the needed parts. Set to false to return regular amazon links
# example:
# amazon_partner: ["bretttercom-20","1789","390957"]
amazon_partner: ["brettterpstra-20", "1789", "9325"]
# To create custom abbreviations for DuckDuckGo Site Searches,
# add to (or replace) the hash below.
# "abbreviation" => "site.url",
# This allows you, for example to use [search term](!bt)
# as a shortcut to search brettterpstra.com (using a site-specific
# DuckDuckGo search). Keys in this list can override existing
# search trigger abbreviations.
#
# If a custom search starts with "http" or "/", it becomes
# a simple replacement. Any instance of "$term" is replaced
# with a URL-escaped version of your search terms.
# Use $term1, $term2, etc. to replace in sequence from
# multiple search terms. No instances of "$term" functions
# as a simple shortcut. "$term" followed by a "d" lowercases
# the replacement. Use "$term1d," "$term2d" to downcase
# sequential replacements (affected individually).
# Long flags (e.g. --no-validate_links) can be used after
# any url in the custom searches.
#
# Use $terms to slugify all search terms, turning
# "Markdown Service Tools" into "markdown-service-tools"
custom_site_searches:
bt: brettterpstra.com
btt: http://brettterpstra.com/$term1d/$term2d
bts: /search/$term --no-validate_links
md: www.macdrifter.com
tuaw: www.tuaw.com
ms: macstories.net
dd: www.leancrew.com
spark: macsparky.com
man: http://man.cx/$term
dev: developer.apple.com
dl: http://marked2app.com/download/Marked.zip
# Remove or comment (with #) history searches you don't want
# performed by `!h`. You can force-enable them per search, e.g.
# `!hsh` (Safari History only), `!hcb` (Chrome Bookmarks only),
# etc. Multiple types can be strung together: !hshcb (Safari
# History and Chrome bookmarks).
history_types:
#- chrome_history
#- chrome_bookmarks
#- safari_bookmarks
#- safari_history
#- firefox_bookmarks
#- firefox_history
# You can find your api key here: https://pinboard.in/settings/password
pinboard_api_key: ''