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

Type Declaration ​

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

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.