Klyx uses an event bus that plugins can subscribe to. You can react to file opens, terminal events, and more.
Getting the event bus
From within a KlyxPlugin lifecycle method:
Or using the service delegate:
Subscribing to events
Built-in events
FileOpenedEvent
Published when a file is opened in the editor.
NewSessionEvent
Published when a new terminal session is created.
SessionTerminateEvent
Published when a terminal session is terminated.
TerminateAllSessionEvent
Published when all terminal sessions are terminated.
TerminalNotificationTapEvent
Published when a terminal notification is tapped.
Publishing custom events
Complete example
Last modified on July 11, 2026