Module B0_ui.Editor

module Editor: sig .. end

Editor interaction.


Cli arguments

val envs : Cmdliner.Term.env_info list

envs describe the VISUAL and EDITOR environment variable.

Editor

val find : ?search:B0_std.Fpath.t list ->
unit -> (B0_std.Cmd.t option, string) Stdlib.result

find ?search ~don't finds a suitable editor. This is (in order):

  1. Ok (Some pager) if pager is a tool invocation parsed from the VISUAL environment variable that can be found via Os.Cmd.find ?search.
  2. Ok (Some pager) if pager is a tool invocation parsed from the EDITOR environment variable that can be found via Os.Cmd.find ?search.
  3. Ok (Some pager) if nano can be found via Os.Cmd.find ?search.
  4. Ok None otherwise.
val edit_files : B0_std.Cmd.t option ->
B0_std.Fpath.t list -> (B0_std.Os.Cmd.status, string) Stdlib.result

edit-files editor fs uses editor to edit the files fs. If editor is: