Skip to main content
Extensions can interact with Klyx’s editor through file openers and workspace tabs. The FileOpenerRegistry lets you handle custom file types, while the Tabs service manages open workspace tabs.

FileOpenerRegistry

Register custom file openers to handle opening files with specific extensions. Registration uses Kotlin context receivers.

Register an opener

Return null to let other openers try. Higher priority values are consulted first.

FileOpenRequest

FileOpener interface

FileOpenerRegistration

FileOpenerRegistry methods

WorkspaceTab

A WorkspaceTab represents an open tab in Klyx’s workspace area.

TextFile

ImageFile

Welcome

Custom

Tabs service

Manage open workspace tabs with the Tabs service.

EditorAction

EditorAction represents actions that can be performed on editor content. This is primarily used internally but can be extended.