mirror of
https://github.com/searxng/searxng.git
synced 2025-12-28 06:30:02 +00:00
[WIP] Add vim-hotkeys plugin
This commit is contained in:
@@ -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)
|
||||
|
||||
10
searx/plugins/vim_hotkeys.py
Normal file
10
searx/plugins/vim_hotkeys.py
Normal file
@@ -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',)
|
||||
Reference in New Issue
Block a user