Moved plugins and add loaded file filtering

- Moved prettify_json and lsp_completer plugins to sub categories
- Add filter_out_loaded_files to prevent opening already-loaded files
- Refactor code events into single events module
- Fix signal blocking during file load operations
- Include READONLY state in source view lifecycle handling
This commit is contained in:
2026-03-08 00:46:21 -06:00
parent 22abc02d25
commit 220a8c2743
102 changed files with 8471 additions and 153 deletions

View File

@@ -9,17 +9,17 @@ import re
from .singleton import Singleton
from .dto.base_event import BaseEvent
from .dto import code
from .dto.code import events as code
class EventFactory(Singleton):
def __init__(self):
self._event_classes: Dict[str, Type[BaseEvent]] = {}
self._auto_register_events( code.__dict__.items() )
def register_event(self, event_type: str, event_class: Type[BaseEvent]):
self._event_classes[event_type] = event_class