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
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
text pasted after the deletion keys are emitted.
Link copied to clipboard
inclusive UTF-16 start offset replaced in the request command text.