Skip to content

eo-typewriterjs


eo-typewriterjs / TDeleteCommand

Type Alias: TDeleteCommand

ts
type TDeleteCommand = TBaseCommand & object;

Defined in: core/commands/types/delete-command.type.ts:29

Type Declaration

NameTypeDefined in
cursorTCursorSelectorcore/commands/types/delete-command.type.ts:30
countTDeleteValuecore/commands/types/delete-command.type.ts:31
by?TAdvanceModeInputcore/commands/types/delete-command.type.ts:32
interval?numbercore/commands/types/delete-command.type.ts:33

Description

A command representing the user's intent to delete text from the document.

Signed count semantics when count is a number:

  • positive: delete forward from the cursor
  • negative: delete backward from the cursor

String operand semantics:

  • "start": delete from cursor back to document start
  • "end": delete from cursor forward to document end
  • "whole": delete the entire document

Released under the MIT License.