PageRenderTime 2ms CodeModel.GetById 44ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/urlsearch/default_config.py

https://bitbucket.org/codedstructure/urlsearch
Python | 62 lines | 59 code | 1 blank | 2 comment | 0 complexity | 69b84666087f0c9fa857d8dec49773fb MD5 | raw file
 1# The content of URLSEARCHRC_CONFIG will be written to ~/.urlsearchrc.default
 2# if neither that file nor ~/.urlsearchrc exist when urlsearch is run
 3
 4URLSEARCHRC_CONFIG = """[DEFAULT]
 5# Default options can be specified here.
 6#
 7# quote_plus quotes search terms as 'this+is+a+search'
 8#quote_plus = on
 9#
10# hash_prefix_numbers precedes wholly numeric searches with a '#' character,
11# intended for searches for tickets in tools such as Trac
12#hash_prefix_numbers = off
13#
14# tlds is a space (and/or comma) separated list of TLDs to search (in order)
15# when identifying the site to open. Note this is only used if no '.' appears
16# within the site itself.
17#tlds = .com .org .net .co.uk
18
19# Site specific options should be given in a section where the section
20# name is the entry point for urlsearch, i.e. the argv[0] value.
21# As well as overriding the default options above, the 'site' and 'query'
22# values can be specified.
23
24# urlsearch matches the search format used by google and bind, so they don't
25# appear in this config file, but google could appear as follows:
26#[google]
27#site = google.com
28#query = search?q={terms}
29#quote_plus = on
30#hash_prefix_numbers = off
31
32# Sets of options can be shared by creating a section with a single 'alias'
33# option pointing to another section title.
34
35[wiki]
36site = wikipedia.org
37query = w/index.php?search={terms}
38
39[pylib]
40site = docs.python.org
41query = library/{terms}
42
43[pypi]
44site = pypi.python.org
45query = pypi?:action=search&term={terms}&submit=search
46
47[jquery]
48site = api.jquery.com
49query = {terms}
50
51[ddg]
52site = duckduckgo
53query = {terms}
54quote_plus = off
55
56[duckduckgo]
57alias = ddg
58
59[amazonuk]
60site = amazon.co.uk
61query = s?keywords={terms}
62"""