Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a05c660e authored by Adam Tauber's avatar Adam Tauber
Browse files

[enh] add ability to set enabled plugins from settings - closes #1613 #778

parent 830a2e5b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -172,3 +172,10 @@ plugins.register(vim_hotkeys)
# load external plugins
if 'plugins' in settings:
    plugins.register(*settings['plugins'], external=True)

if 'enabled_plugins' in settings:
    for plugin in plugins:
        if plugin.name in settings['enabled_plugins']:
            plugin.default_on = True
        else:
            plugin.default_on = False
+6 −0
Original line number Diff line number Diff line
@@ -67,6 +67,12 @@ outgoing: # communication with search engines
#   - plugin2
#   - ...

# uncomment below section if you want to configure which plugin is enabled by default
#
# enabled_plugins:
#   - "HTTPS rewrite"
#   - ...

engines:
  - name: apk mirror
    engine: apkmirror