TextOffsetStateCommandExtensions extension
Methods
-
deleteNextCommand(
List< String> graphemes) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteNextOrSelectionCommand(
List< String> graphemes) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deletePreviousCommand(
List< String> graphemes) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deletePreviousOrSelectionCommand(
List< String> graphemes) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteSelectionCommand(
List< String> graphemes) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteSurroundingPairCommand(
List< String> graphemes, {required Map<String, String> surroundPairs}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteToLineEndCommand(
List< String> graphemes, {required int lineEndOffset}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteToLineStartCommand(
List< String> graphemes, {required int lineStartOffset}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteWordBackwardCommand(
List< String> graphemes, {required GraphemePredicate isWord}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
deleteWordForwardCommand(
List< String> graphemes, {required GraphemePredicate isWord}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
insertAutoPairCommand(
List< String> graphemes, {required List<String> opening, required List<String> closing}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
insertIndentedNewlineCommand(
List< String> graphemes, {required List<String> baseIndent, List<String> additionalIndent = const <String>[], List<String> trailingSuffix = const <String>[], int trailingSuffixReplaceCount = 0}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
moveByCharacterCommand(
List< String> graphemes, {required bool forward, bool extendSelection = false, bool clearSelection = true, bool preserveCollapsedSelection = false}) → TextCursorCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
moveByVisualLineCommand(
TextDocument document, EditorState state, TextView view, {required int lineDelta, int desiredDisplayColumn = -1, bool extendSelection = false, bool clearSelection = true, bool preserveCollapsedSelection = false}) → TextCursorCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
moveByWordCommand(
List< String> graphemes, {required bool forward, required GraphemePredicate isWord, bool extendSelection = false, bool clearSelection = true, bool preserveCollapsedSelection = false}) → TextCursorCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
moveToDocumentBoundaryCommand(
List< String> graphemes, {required bool forward, bool extendSelection = false, bool clearSelection = true, bool preserveCollapsedSelection = false}) → TextCursorCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
moveToVisualLineBoundaryCommand(
TextDocument document, EditorState state, TextView view, {required bool end, bool extendSelection = false, bool clearSelection = true, bool preserveCollapsedSelection = false}) → TextCursorCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
replaceSelectionOrInsertCommand(
List< String> graphemes, {List<String> replacement = const <String>[], bool replaceSelection = true}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
skipClosingDelimiterCommand(
List< String> graphemes, {required List<String> closing, bool clearSelection = false}) → TextCursorCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
toggleDelimitedSegmentCommand(
List< String> graphemes, {required int rangeStartOffset, required int rangeEndOffset, required String startDelimiter, required String endDelimiter}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
transformSelectionOrLineCommand(
List< String> graphemes, {required int lineStartOffset, required int lineEndOffset, required String transform(String text)}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
transformWordOrAdjacentCommand(
List< String> graphemes, {required GraphemePredicate isWord, required String transform(String text)}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
unwrapSelectionCommand(
List< String> graphemes, {required Map<String, String> surroundPairs}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension
-
wrapSelectionCommand(
List< String> graphemes, {required List<String> before, List<String> ? after}) → TextCommandResult -
Available on TextOffsetStateSnapshot, provided by the TextOffsetStateCommandExtensions extension