Wiring plugins to controller messages; importing plugin controller to code base; fixed VTE widget adding to bash history

This commit is contained in:
2026-01-18 22:40:06 -06:00
parent dac0fa3fb1
commit 7a369886de
7 changed files with 31 additions and 20 deletions

View File

@@ -1,3 +1,5 @@
"""
Gtk Bound Plugins Module
"""
from .controller import plugins_controller

View File

@@ -47,7 +47,8 @@ class PluginsController(ControllerBase, PluginsControllerMixin, PluginReloadMixi
def _controller_message(self, event: BaseEvent):
...
for manifest_meta in self._plugin_collection:
manifest_meta.instance._controller_message(event)
def _collect_search_locations(self, path: str, locations: list):
locations.append(path)
@@ -121,7 +122,6 @@ class PluginsController(ControllerBase, PluginsControllerMixin, PluginReloadMixi
def execute_plugin(self, module: type, manifest_meta: ManifestMeta):
plugin = module.Plugin()
plugin.plugin_context: PluginContext = self.create_plugin_context()
plugin._controller_message: callable = self._controller_message
manifest = manifest_meta.manifest
manifest_meta.instance = plugin

View File

@@ -21,7 +21,7 @@ class PluginBase:
self.plugin_context: PluginContext = None
def _controller_message(self):
def _controller_message(self, event: BaseEvent):
raise PluginBaseException("Plugin Base '_controller_message' must be overriden by Plugin")
def load(self):