Module Down_std.Editor

Editor interaction.

val find : unit -> (Cmd.t, string) Stdlib.result

find () finds an editor command in EDITOR or VISUAL (in that order). Does not check it's runnable.

val edit_string : ext:string -> string -> (string, string) Stdlib.result

edit_string ~ext s edits strings s in a temporary file with extension ext with an editor found using find (). The resulting string is String.trimed.

val edit_file : string -> (unit, string) Stdlib.result

edit_file s edits file s with an editor found using find.