package inquire
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0b88d89e24d4cbc0560a7c8d8ec51388990e1b27f24685029997afa52a7c720f
sha512=8b62860a8d15e41528a404a6f1b9968c3d79755607b5ea319af2e3e45516e672a785361d278279910928db4054e1800e87bcee0210ff3eabfb330713b368c827
doc/inquire.lambda-term/LTerm_edit/index.html
Module LTerm_edit
Text edition
Actions
type action = | Zed of Zed_edit.action(*A zed action.
*)| Start_macro(*Start a new macro.
*)| Stop_macro(*Ends the current macro.
*)| Cancel_macro(*Cancel the current macro.
*)| Play_macro(*Play the last recorded macro.
*)| Insert_macro_counter(*Insert the current value of the macro counter.
*)| Set_macro_counter(*Sets the value of the macro counter.
*)| Add_macro_counter(*Adds a value to the macro counter.
*)| Custom of unit -> unit
val bindings : action list Zed_input.Make(LTerm_key).t refBindings. These bindings are used by LTerm_read_line and by edition widgets.
val bind : LTerm_key.t list -> action list -> unitbind seq actions associates actions to the given sequence.
val unbind : LTerm_key.t list -> unitunbind seq unbinds seq.
val doc_of_action : action -> stringdoc_of_action action returns a short description of the action.
val action_of_name : string -> actionaction_of_name str converts the given action name into an action. Action name are the same as variants name but lowercased and with '_' replaced by '-'. It raises Not_found if the name does not correspond to an action. It also recognizes zed actions.
val name_of_action : action -> stringname_of_action act returns the name of the given action.
Widgets
val clipboard : Zed_edit.clipboardThe global clipboard.
val macro : action Zed_macro.tThe global macro recorder.
class edit : ?clipboard:Zed_edit.clipboard -> ?macro:action Zed_macro.t -> ?size:
LTerm_geom.size -> unit -> object ... endClass of edition widgets. If no clipboard is provided, then the global one is used.