package zed

  1. Overview
  2. Docs
Abstract engine for text edition in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

zed-1.6.tbz
sha256=74bb48f2ee9f5bd22079582cfe6228d944af19e0d8393a849eae5ee7b88f1e1e
md5=f75c3094af1a22f9801d5ca5eb2d40e0

doc/zed/Zed_macro/index.html

Module Zed_macroSource

Macro recorder

Sourcetype 'a t

Type of macro recorders.

Sourceval create : 'a list -> 'a t

create macro create a new macro recorder, with initial contents macro.

Sourceval recording : 'a t -> bool React.signal

Whether the recorder is recording a macro.

Sourceval get_recording : 'a t -> bool

Returns the current state of the recorder.

Sourceval set_recording : 'a t -> bool -> unit

Starts or stops the macro recorder.

Sourceval cancel : 'a t -> unit

Cancels the current macro if recording one.

Sourceval count : 'a t -> int React.signal

The number of actions in the macro recorder. It is 0 if the recorder is not currently recording.

Sourceval get_count : 'a t -> int

Returns the current number of actions in the macro recorder.

Sourceval add : 'a t -> 'a -> unit

add recorder x adds x to the recorder if it is recording a macro.

Sourceval contents : 'a t -> 'a list

Returns the currently recorded macro.

Sourceval counter : 'a t -> int React.signal

The contents of the macro counter.

Sourceval get_counter : 'a t -> int

Gets the contents of the macro counter.

Sourceval set_counter : 'a t -> int -> unit

Sets the macro counter to the given value.

Sourceval add_counter : 'a t -> int -> unit

Adds the given value to the macro counter.

OCaml

Innovation. Community. Security.