KetraTerm
API · v0.2.2All versions

SwingShellSuggestionReplacement

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.

The plan is derived from the suggestion's replacement range and the request cursor. Hosts can use commandTextAfterReplacement for learning/feedback while the default Swing acceptance handler uses the delete counts to emit terminal editing keys before pasting replacementText.

Constructors

Link copied to clipboard
constructor(startOffset: Int, endOffset: Int, replacementText: String, deleteBeforeCursorCount: Int, deleteAfterCursorCount: Int)

Properties

Link copied to clipboard

number of Delete key events needed before any Backspace key events.

Link copied to clipboard

number of Backspace key events needed before paste.

Link copied to clipboard

exclusive UTF-16 end offset replaced in the request command text.

Link copied to clipboard

text pasted after the deletion keys are emitted.

Link copied to clipboard

inclusive UTF-16 start offset replaced in the request command text.