[refactor] plugins: allow setting default enabled state via settings.yml

This commit is contained in:
Bnyro
2025-02-05 14:28:24 +01:00
parent 4ab7984edd
commit 37716f47bb
18 changed files with 129 additions and 68 deletions
-1
View File
@@ -30,7 +30,6 @@ Configuration defaults (at built time):
{% for plg in plugins %}
* - {{plg.info.name}}
- {{(plg.default_on and "y") or ""}}
- {{plg.info.description}}
{% endfor %}
+14 -6
View File
@@ -27,13 +27,21 @@ configuration looks like:
.. code:: yaml
enabled_plugins:
- 'Basic Calculator'
- 'Hash plugin'
- 'Self Information'
- 'Tracker URL remover'
- 'Unit converter plugin'
- 'Ahmia blacklist'
- name: 'Basic Calculator'
default_on: true
- name: 'Hash plugin'
default_on: true
- name: 'Self Information'
default_on: true
- name: 'Tracker URL remover'
default_on: true
- name: 'Unit converter plugin'
default_on: true
- name: 'Ahmia blacklist' # activation depends on outgoing.using_tor_proxy
default_on: true
In order to disable a plugin by default, but still allow users to use it by enabling
it in their user settings, set ``default_on`` to ``false``.
.. _settings external_plugins: