-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.searchlink
93 lines (79 loc) · 3.17 KB
/
.searchlink
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
# 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: true
# when running on a file, back up original to *.bak
# backup: true
# Time limit for searches. Increase if your searches are regularly
# timing out
timeout: 15
# change this to set a specific country for search (default US)
# country_code: US
# set to true to force inline Markdown links
inline: true
# 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: true
# set to true to attempt to remove SEO elements from page titles,
# such that "Regular expressions for beginners | Brett Terpstra.com"
# becomes "Regular expressions for beginners"
remove_seo: true
# 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%"
# 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:
amc: andrewm.codes
ms: macstories.net
man: http://man.cx/$termd
rails: api.rubyonrails.org/?q=$term
gh: github.com
alfp: https://alfred.app/search/?q=$term
alfh: https://alfredapp.com/search/?q=$term
obsp: https://obsidian.md/plugins?search=$term
# 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:
- safari_bookmarks
- safari_history
# - chrome_history
# - chrome_bookmarks
# - firefox_bookmarks
# - firefox_history