searxng/searx/plugins/vim_hotkeys.py
Martin Fischer 1af96e2a7e [fix] plugins in simple theme
The previous commit introduced a new plugin Resource API.
This commit implements the necessary changes in the simple theme.

(There's no change to infinite_scroll.py because it hasn't actually
 yet been implemented in the Simple theme.)
2022-01-18 19:06:16 +01:00

17 lines
562 B
Python

from flask_babel import gettext
from . import Resource
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
preference_section = 'ui'
js_dependencies = (
Resource(path='plugins/js/vim_hotkeys.js', themes=('oscar',)),
Resource(path='themes/simple/src/js/plugins/vim_hotkeys.js', themes=('simple',)),
)
css_dependencies = (Resource(path='plugins/css/vim_hotkeys.css', themes=('oscar',)),)