Skip to content

eo-typewriterjs


eo-typewriterjs / TSelectEvent

Type Alias: TSelectEvent

ts
type TSelectEvent = TBaseEvent & object;

Defined in: core/events/types/select-event.type.ts:20

Type Declaration

NameTypeDefined in
timenumbercore/events/types/select-event.type.ts:21
cursorIdstringcore/events/types/select-event.type.ts:22
boundary?"start" | "end" | "whole"core/events/types/select-event.type.ts:23
countnumbercore/events/types/select-event.type.ts:24
byTAdvanceModeInputcore/events/types/select-event.type.ts:25
sourceCommandIdstringcore/events/types/select-event.type.ts:26

Description

A scheduled event that sets the active document selection.

When boundary is present it takes precedence:

  • "start": select from cursor to document start
  • "end": select from cursor to document end
  • "whole": select the entire document

When boundary is absent the reducer uses count and by:

  • positive count selects forward; negative count selects backward

This event is instant - it does not consume any timeline duration.

Released under the MIT License.