Skip to main content

Module hook

Module hook 

Source
Expand description

Extensible hook system and input interceptors.

Structs§

AutoPairsHook
Built-in hook that automatically inserts closing quotes, brackets, and braces, wraps selected text, and steps over closing pairs.
HookContext
The mutable editing context passed to editor hooks during events.
KeyEvent
A normalized keyboard event passed to editor hooks.
Modifiers
Keyboard modifier keys state.
SearchSnapshot
Owned snapshot of a hook’s search panel for renderers.

Enums§

CursorStyle
The visual style of the text cursor.
HookOutcome
The outcome of an editor hook handling an event.

Traits§

EditorHook
Trait for intercepting input events, mutating buffer state, and extending editor behaviors.