package inquire

  1. Overview
  2. Docs
An OCaml library to create beautiful interactive CLIs

Install

Dune Dependency

Authors

Maintainers

Sources

inquire-0.2.1.tbz
sha256=0b88d89e24d4cbc0560a7c8d8ec51388990e1b27f24685029997afa52a7c720f
sha512=8b62860a8d15e41528a404a6f1b9968c3d79755607b5ea319af2e3e45516e672a785361d278279910928db4054e1800e87bcee0210ff3eabfb330713b368c827

doc/inquire.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.