PageRenderTime 50ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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. URLSEARCHRC_CONFIG = """[DEFAULT]
  4. # Default options can be specified here.
  5. #
  6. # quote_plus quotes search terms as 'this+is+a+search'
  7. #quote_plus = on
  8. #
  9. # hash_prefix_numbers precedes wholly numeric searches with a '#' character,
  10. # intended for searches for tickets in tools such as Trac
  11. #hash_prefix_numbers = off
  12. #
  13. # tlds is a space (and/or comma) separated list of TLDs to search (in order)
  14. # when identifying the site to open. Note this is only used if no '.' appears
  15. # within the site itself.
  16. #tlds = .com .org .net .co.uk
  17. # Site specific options should be given in a section where the section
  18. # name is the entry point for urlsearch, i.e. the argv[0] value.
  19. # As well as overriding the default options above, the 'site' and 'query'
  20. # values can be specified.
  21. # urlsearch matches the search format used by google and bind, so they don't
  22. # appear in this config file, but google could appear as follows:
  23. #[google]
  24. #site = google.com
  25. #query = search?q={terms}
  26. #quote_plus = on
  27. #hash_prefix_numbers = off
  28. # Sets of options can be shared by creating a section with a single 'alias'
  29. # option pointing to another section title.
  30. [wiki]
  31. site = wikipedia.org
  32. query = w/index.php?search={terms}
  33. [pylib]
  34. site = docs.python.org
  35. query = library/{terms}
  36. [pypi]
  37. site = pypi.python.org
  38. query = pypi?:action=search&term={terms}&submit=search
  39. [jquery]
  40. site = api.jquery.com
  41. query = {terms}
  42. [ddg]
  43. site = duckduckgo
  44. query = {terms}
  45. quote_plus = off
  46. [duckduckgo]
  47. alias = ddg
  48. [amazonuk]
  49. site = amazon.co.uk
  50. query = s?keywords={terms}
  51. """