5Plugins can extend or replace functionality of various components of searx.
12 name = 'Example plugin'
13 description = 'This plugin extends the suggestions with the word "example"'
14 default_on = False # disabled by default
16 js_dependencies = tuple() # optional, list of static js files
17 css_dependencies = tuple() # optional, list of static css files
20 # attach callback to the post search hook
21 # request: flask request object
22 # ctx: the whole local context of the post search hook
23 def post_search(request, ctx):
24 ctx['search'].suggestions.add('example')
30Entry points (hooks) define when a plugin runs. Right now only three hooks are
31implemented. So feel free to implement a hook if it fits the behaviour of your
37Runs BEFORE the search request. Function to implement: ``pre_search``
42Runs AFTER the search request. Function to implement: ``post_search``
47Runs when a new result is added to the result list. Function to implement:
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list