KetraTerm
API · v0.2.2All versions

Package-level declarations

Types

Link copied to clipboard
data class SwingShellSuggestion @JvmOverloads constructor(val replacementText: String, val replacementStartOffset: Int, val replacementEndOffset: Int, val source: String, val kind: String, val displayText: String = replacementText, val detail: String = "", val accentRole: SwingShellSuggestionAccentRole = SwingShellSuggestionAccentRole.from(kind, source), val matchedRanges: SwingShellSuggestionMatchRanges = SwingShellSuggestionMatchRanges.EMPTY, val sourceDisplayText: String = source, val interactionContext: Any? = null)

Host-provided shell suggestion shown by the reusable Swing terminal popup.

Link copied to clipboard

Stable presentation category for one shell suggestion.

Link copied to clipboard
data class SwingShellSuggestionAcceptance(val suggestion: SwingShellSuggestion, val index: Int, val request: SwingShellSuggestionRequest)

Host/provider result accepted by the user.

Link copied to clipboard

Semantic action understood by the reusable shell-suggestion controller.

Link copied to clipboard

Listener for automatic shell-suggestion eligibility changes.

Link copied to clipboard

User feedback event for the selected shell suggestion.

Link copied to clipboard

Host callback invoked for suggestion acceptance and explicit dismissal.

Link copied to clipboard

Feedback kind emitted by the reusable suggestion popup.

Link copied to clipboard

Host callback invoked when the user accepts a shell suggestion.

Link copied to clipboard

Listener notified immediately before command-affecting terminal input is submitted.

Link copied to clipboard

Host-owned mapping from Swing key presses to semantic suggestion actions.

Link copied to clipboard

Immutable ordered UTF-16 match ranges for a Swing suggestion display string.

Link copied to clipboard

Host provider for progressive shell-suggestion snapshots.

Link copied to clipboard
data class SwingShellSuggestionReplacement(val startOffset: Int, val endOffset: Int, val replacementText: String, val deleteBeforeCursorCount: Int, val deleteAfterCursorCount: Int)

Validated command-line replacement plan for one shell suggestion.

Link copied to clipboard
data class SwingShellSuggestionRequest(val commandText: String, val cursorOffset: Int, val anchorColumn: Int, val anchorRow: Int)

Immutable command-line context used to request shell suggestions.

Link copied to clipboard
data class SwingShellSuggestionState(val visible: Boolean, val count: Int, val selectedIndex: Int, val anchorColumn: Int, val anchorRow: Int, val selectedSuggestion: SwingShellSuggestion?)

Snapshot of the currently visible shell suggestion popup state.

Link copied to clipboard

Host-pluggable visual surface for shell suggestions.

Link copied to clipboard

Creates one suggestion view for a reusable Swing terminal instance.

Link copied to clipboard

Pointer-interaction callback used by a SwingShellSuggestionView.

Link copied to clipboard

Immutable viewport published to one shell-suggestion view.

Functions

Link copied to clipboard

Returns the command text that would result from accepting this suggestion.

Link copied to clipboard

Returns the validated replacement plan for this suggestion and request.