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:30

Type Declaration ​

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

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.