Plugin API Reference Guide

// Initializing Plugins

Every plugin must export a setup function that TermStudio calls on startup:

def initialize(api):
    api.register_command("myplugin.hello", hello_world)

// Registering Event Listeners

Hook into editor events (like file saved or tab changed) to execute custom code:

api.on_file_save(log_event)

// Extending the User Interface

Add custom widgets to the sidebar panel or register commands inside the status bar dashboard to provide additional diagnostic tools.