KetraTerm
API · DevelopmentAll 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, val feedbackToken: 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

Outcome at the configured editing boundary; acceptance never acknowledges transport or shell execution.

Link copied to clipboard

Semantic action understood by the reusable shell-suggestion controller.

Link copied to clipboard

Why an interaction ended. Only explicit dismissal represents negative user preference.

Link copied to clipboard

Captures an editing capability on the EDT before asynchronous suggestion work starts.

Link copied to clipboard

Listener for automatic shell-suggestion eligibility changes.

Link copied to clipboard

View-owned provider diagnostics, called once on the EDT after failed request cleanup.

Link copied to clipboard
data class SwingShellSuggestionFeedback(val kind: SwingShellSuggestionFeedbackKind, val suggestion: SwingShellSuggestion, val index: Int, val request: SwingShellSuggestionRequest, val acceptanceResult: SwingShellSuggestionAcceptanceResult? = null)

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

Request-owned synchronous editing capability, captured before suggestion work. Implementations run on the EDT and return the editing authority's actual result. The owning interaction derives feedback and closes the capability exactly once.

Link copied to clipboard
class SwingShellSuggestionInteraction(val request: SwingShellSuggestionRequest, handler: SwingShellSuggestionHandler = SwingShellSuggestionHandler.NONE, feedbackHandler: SwingShellSuggestionFeedbackHandler = SwingShellSuggestionFeedbackHandler.NONE) : AutoCloseable

One suggestion request shared by built-in, detached Swing, and IntelliJ presentation.

Link copied to clipboard

Synchronous EDT observation of publication, selection, acceptance, and closure.

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)

Immutable command-line context used to request shell suggestions.

Link copied to clipboard

Immutable complete ranking for one publication. Selection updates share its candidate storage. Retain this snapshot with UI actions; indices from an older publication are never reinterpreted.

Link copied to clipboard
class SwingShellSuggestionSource(val suggestions: Flow<List<SwingShellSuggestion>>, val feedbackHandler: SwingShellSuggestionFeedbackHandler = SwingShellSuggestionFeedbackHandler.NONE)

Provider resources captured together for one request, before collection starts.

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-owned request and presentation lifecycle for optional automatic suggestions.

Link copied to clipboard

Determines whether a provider request follows automatic observation or an explicit user action.

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.