ui/terminal_shortcuts library

Classes

ClearHistoryIntent
ClearSelectionIntent
CopyIntent
Intent: copy the engine's current selection to the system clipboard.
DecreaseFontSizeIntent
Intent: bump font size down by 1pt.
IncreaseFontSizeIntent
Intent: bump font size up by 1pt.
PasteIntent
Intent: paste the system clipboard's plain-text content into the engine.
ResetFontSizeIntent
Intent: reset font size to the baseline configured size.
ScrollLineIntent
ScrollPageIntent
ScrollToEdgeIntent
SendEscapeIntent
Send raw bytes to the engine (alacritty Action::Esc / chars).
ToggleSearchIntent
Intent: toggle the search bar visibility (host concern).
UnsupportedActionIntent
Recognized-but-unsupported alacritty actions (vi/tabs/window/fullscreen…). Wired to a no-op so config validates and the host can override via TerminalView.actions. name is the alacritty action name (for logging).

Constants

defaultTerminalShortcuts → const Map<ShortcutActivator, Intent>
Default key bindings for the terminal view. Consumers can override individual entries by passing a custom shortcuts: map to TerminalView; pass const {} to disable every default.

Functions

defaultCopyAction(TerminalEngine engine) → void
Reads the engine's selection text and writes it to the system clipboard. Used as the default Copy action so a TerminalView with no host wiring still performs the natural Ctrl+Shift+C.
defaultPasteAction(TerminalEngine engine, TerminalController controller) Future<void>
Reads text/plain from the system clipboard and writes it to the engine, applying bracketed-paste encoding when active. Goes through TerminalController.onTerminalInputStart which mirrors alacritty event.rs:on_terminal_input_start — scrollback rewind, gated selection clear AND the follow-up refreshView so any prior selection highlight disappears from the painter before the paste echo arrives.
defaultTerminalActions({required TerminalController controller, required TerminalEngine engine, required ValueSetter<double> onSetZoom, required double baselineFontSize, required double currentFontSize(), VoidCallback? onCopy, Future<void> onPaste()?, VoidCallback? onToggleSearch}) Map<Type, Action<Intent>>
Default action handlers for the intents in defaultTerminalShortcuts.