diff options
author | Kirill Isakov <ukwt@ya.ru> | 2016-04-23 22:26:02 +0600 |
---|---|---|
committer | Kirill Isakov <ukwt@ya.ru> | 2016-04-23 22:26:02 +0600 |
commit | 3246541bdc405f269179ec737b83772b926c43a6 (patch) | |
tree | 0b311e6050af84231e01139b0b2c00e09178dad7 /searx/plugins | |
parent | 603ecbeb6e75b28dff0427ac0cd3689348ef11ce (diff) | |
download | searxng-3246541bdc405f269179ec737b83772b926c43a6.tar.gz searxng-3246541bdc405f269179ec737b83772b926c43a6.zip |
[WIP] Add vim-hotkeys plugin
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/__init__.py | 4 | ||||
-rw-r--r-- | searx/plugins/vim_hotkeys.py | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 87cc01382..efb9b0682 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -23,7 +23,8 @@ from searx.plugins import (https_rewrite, open_results_on_new_tab, self_info, search_on_category_select, - tracker_url_remover) + tracker_url_remover, + vim_hotkeys) required_attrs = (('name', str), ('description', str), @@ -77,3 +78,4 @@ plugins.register(open_results_on_new_tab) plugins.register(self_info) plugins.register(search_on_category_select) plugins.register(tracker_url_remover) +plugins.register(vim_hotkeys) diff --git a/searx/plugins/vim_hotkeys.py b/searx/plugins/vim_hotkeys.py new file mode 100644 index 000000000..e537a3ac8 --- /dev/null +++ b/searx/plugins/vim_hotkeys.py @@ -0,0 +1,10 @@ +from flask.ext.babel import gettext + +name = gettext('Vim-like hotkeys') +description = gettext('Navigate search results with Vim-like hotkeys ' + '(JavaScript required). ' + 'Press "h" key on main or result page to get help.') +default_on = False + +js_dependencies = ('plugins/js/vim_hotkeys.js',) +css_dependencies = ('plugins/css/vim_hotkeys.css',) |